blob: bb0270e05c6046b15571f2bf900b3346d4913241 [file] [log] [blame]
Mark Slee7e9eea42007-09-10 21:00:23 +00001@protocol TTransport <NSObject>
2
3 /**
4 * Guarantees that all of len bytes are
5 *
6 * @param buf Array to read into
7 * @param off Index to start reading at
8 * @param len Maximum number of bytes to read
9 * @return The number of bytes actually read, which must be equal to len
10 * @throws TTransportException if there was an error reading data
11 */
12- (int) readAll: (uint8_t *) buf offset: (int) off length: (int) len;
13
14- (void) write: (const uint8_t *) data offset: (unsigned int) offset length: (unsigned int) length;
15
16- (void) flush;
17@end