FMByteOutputStream Class Reference

Inherits from NSObject
Declared in FM.h

Overview

An buffer of bytes that can be written sequentially.

– reset

Empties this stream and resets it.

- (void)reset

Discussion

Empties this stream and resets it.

Declared In

FM.h

– size

Gets the number of bytes written to the stream.

- (int)size

Discussion

Gets the number of bytes written to the stream.

Declared In

FM.h

– toArray

Converts the stream to a byte array.

- (NSMutableData *)toArray

Discussion

Converts the stream to a byte array.

Declared In

FM.h

– writeBufferWithBuffer:

Writes a buffer to the stream.

- (void)writeBufferWithBuffer:(NSMutableData *)buffer

Parameters

name="buffer">The

buffer.

Discussion

Writes a buffer to the stream.

Declared In

FM.h

– writeBuffer:

Writes a buffer to the stream.

- (void)writeBuffer:(NSMutableData *)buffer

Parameters

name="buffer">The

buffer.

Discussion

Writes a buffer to the stream.

Declared In

FM.h

– writeBufferWithBuffer:offset:length:

Writes a buffer to the stream.

- (void)writeBufferWithBuffer:(NSMutableData *)buffer offset:(int)offset length:(int)length

Parameters

name="buffer">The

buffer.

name="offset">The

offset.

name="length">The

length.

Discussion

Writes a buffer to the stream.

Declared In

FM.h

– writeBuffer:offset:length:

Writes a buffer to the stream.

- (void)writeBuffer:(NSMutableData *)buffer offset:(int)offset length:(int)length

Parameters

name="buffer">The

buffer.

name="offset">The

offset.

name="length">The

length.

Discussion

Writes a buffer to the stream.

Declared In

FM.h

– writeToWithStream:

Writes the contents of this stream to another stream.

- (void)writeToWithStream:(FMByteOutputStream *)stream

Parameters

name="stream">The

stream.

Discussion

Writes the contents of this stream to another stream.

Declared In

FM.h

– writeWithValue:

Writes a value to the stream.

- (void)writeWithValue:(uint8_t)value

Parameters

name="value">The

value.

Discussion

Writes a value to the stream.

Declared In

FM.h