mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
20 lines
432 B
Objective-C
20 lines
432 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTOutputStream : NSObject
|
|
|
|
- (NSOutputStream *)wrappedOutputStream;
|
|
|
|
- (NSData *)currentBytes;
|
|
|
|
- (NSInteger)write:(const uint8_t *)buffer maxLength:(NSUInteger)len;
|
|
- (void)writeInt32:(int32_t)value;
|
|
- (void)writeInt64:(int64_t)value;
|
|
- (void)writeDouble:(double)value;
|
|
- (void)writeData:(NSData *)data;
|
|
- (void)writeString:(NSString *)data;
|
|
- (void)writeBytes:(NSData *)data;
|
|
|
|
@end
|