mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
28 lines
370 B
Objective-C
28 lines
370 B
Objective-C
#import "TGDataItem.h"
|
|
|
|
@interface TGDataItem () {
|
|
NSMutableData *_data;
|
|
}
|
|
|
|
@end
|
|
|
|
@implementation TGDataItem
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
if (self != nil) {
|
|
_data = [[NSMutableData alloc] init];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)appendData:(NSData *)data {
|
|
[_data appendData:data];
|
|
}
|
|
|
|
- (NSData *)data {
|
|
return _data;
|
|
}
|
|
|
|
@end
|