1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGDataItem.h
2016-02-25 01:03:51 +01:00

18 lines
372 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;
- (NSString *)path;
@end