An buffer of bytes that can be read sequentially. More...
Instance Methods | |
(int) | - available |
Gets the number of available bytes for reading. More... | |
(instancetype) | - initWithBytes: |
Initializes a new instance of the FMLiveSwitchByteInputStream class. More... | |
(instancetype) | - initWithBytes:offset: |
Initializes a new instance of the FMLiveSwitchByteInputStream class. More... | |
(void) | - mark |
Marks the current position for a later reset. More... | |
(int) | - read |
Reads a value from the byte array. More... | |
(int) | - readWithBuffer:offset:length: |
Reads a segment from the byte array. More... | |
(void) | - reset |
Resets the stream to the marked position. More... | |
(int) | - skipWithN: |
Advances the stream position by the amount specified. More... | |
Class Methods | |
(FMLiveSwitchByteInputStream *) | + byteInputStreamWithBytes: |
Initializes a new instance of the FMLiveSwitchByteInputStream class. More... | |
(FMLiveSwitchByteInputStream *) | + byteInputStreamWithBytes:offset: |
Initializes a new instance of the FMLiveSwitchByteInputStream class. More... | |
An buffer of bytes that can be read sequentially.
- (int) available |
Gets the number of available bytes for reading.
+ (FMLiveSwitchByteInputStream*) byteInputStreamWithBytes: | (NSMutableData *) | bytes |
Initializes a new instance of the FMLiveSwitchByteInputStream class.
bytes | The bytes. |
+ (FMLiveSwitchByteInputStream*) byteInputStreamWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
Initializes a new instance of the FMLiveSwitchByteInputStream class.
bytes | The bytes. |
offset | The offset. |
- (instancetype) initWithBytes: | (NSMutableData *) | bytes |
Initializes a new instance of the FMLiveSwitchByteInputStream class.
bytes | The bytes. |
- (instancetype) initWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
Initializes a new instance of the FMLiveSwitchByteInputStream class.
bytes | The bytes. |
offset | The offset. |
- (void) mark |
Marks the current position for a later reset.
- (int) read |
Reads a value from the byte array.
- (int) readWithBuffer: | (NSMutableData *) | buffer | |
offset: | (int) | offset | |
length: | (int) | length | |
Reads a segment from the byte array.
- (void) reset |
Resets the stream to the marked position.
- (int) skipWithN: | (int) | n |
Advances the stream position by the amount specified.
n | The number of bytes to skip. |