1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/Telegraph/TGDataItem.h
2015-10-01 19:19:52 +03:00

16 lines
351 B
Objective-C

#import <Foundation/Foundation.h>
@interface TGDataItem : NSObject
- (instancetype)initWithTempFile;
- (instancetype)initWithFilePath:(NSString *)filePath;
- (void)moveToPath:(NSString *)path;
- (void)remove;
- (void)appendData:(NSData *)data;
- (NSData *)readDataAtOffset:(NSUInteger)offset length:(NSUInteger)length;
- (NSUInteger)length;
@end