FMByteInputStream Class Reference

Inherits from NSObject
Declared in FM.h

Overview

An buffer of bytes that can be read sequentially.

– available

Gets the number of available bytes for reading.

- (int)available

Discussion

Gets the number of available bytes for reading.

Declared In

FM.h

+ byteInputStreamWithBytes:

Initializes a new instance of the class.

+ (FMByteInputStream *)byteInputStreamWithBytes:(NSMutableData *)bytes

Parameters

name="bytes">The

bytes.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

+ byteInputStreamWithBytes:offset:

Initializes a new instance of the class.

+ (FMByteInputStream *)byteInputStreamWithBytes:(NSMutableData *)bytes offset:(int)offset

Parameters

name="offset">The

offset.

name="bytes">The

bytes.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– initWithBytes:

Initializes a new instance of the class.

- (id)initWithBytes:(NSMutableData *)bytes

Parameters

name="bytes">The

bytes.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– initWithBytes:offset:

Initializes a new instance of the class.

- (id)initWithBytes:(NSMutableData *)bytes offset:(int)offset

Parameters

name="offset">The

offset.

name="bytes">The

bytes.

Discussion

Initializes a new instance of the class.

Declared In

FM.h

– mark

Marks the current position for a later reset.

- (void)mark

Discussion

Marks the current position for a later reset.

Declared In

FM.h

– read

Reads a value from the byte array. The byte, or -1 if no more bytes are available for reading.

- (int)read

Discussion

Reads a value from the byte array. The byte, or -1 if no more bytes are available for reading.

Declared In

FM.h

– readWithBuffer:offset:length:

Reads a segment from the byte array. The number of bytes read.

- (int)readWithBuffer:(NSMutableData *)buffer offset:(int)offset length:(int)length

Discussion

Reads a segment from the byte array. The number of bytes read.

Declared In

FM.h

– reset

Resets the stream to the marked position.

- (void)reset

Discussion

Resets the stream to the marked position.

Declared In

FM.h

– skipWithN:

Advances the stream position by the amount specified.

- (int)skipWithN:(int)n

Parameters

name="n">The

number of bytes to skip. The number of bytes skipped.

Discussion

Advances the stream position by the amount specified.

Declared In

FM.h