Binary data buffer implementation. More...
Instance Methods | |
(bool) | - and:offset: |
Performs a bitwise "and" operation on a value. More... | |
(FMLiveSwitchDataBuffer *) | - appendWithBuffer: |
Appends a buffer. More... | |
(FMLiveSwitchDataBuffer *) | - appendWithBuffers: |
Appends some buffers. More... | |
(bool) | - canResizeWithNewLength:offset: |
Gets whether this buffer can be resized to the new length. More... | |
(FMLiveSwitchDataBuffer *) | - clone |
Clones this instance. More... | |
(FMLiveSwitchDataBuffer *) | - cloneWithLittleEndian: |
Clones this instance. More... | |
(FMLiveSwitchDataBuffer *) | - copy |
Copies this instance into new memory. More... | |
(FMLiveSwitchDataBuffer *) | - copyWithUsePool: |
Copies this instance. More... | |
(NSMutableData *) | - data |
Gets the data. More... | |
(FMLiveSwitchDataBuffer *) | - free |
Decrements the retain count by one and returns the Buffer to the pool if zero. More... | |
(int) | - index |
Gets the index. More... | |
(NSMutableData *) | - innerData |
Gets backing data buffer. More... | |
(bool) | - isPooled |
Gets whether this DataBuffer is from a pool. More... | |
(bool) | - isSubset |
Gets whether this DataBuffer is a subset. More... | |
(FMLiveSwitchDataBuffer *) | - keep |
Increment the retain count by one. More... | |
(int) | - length |
Gets the length. More... | |
(bool) | - littleEndian |
Gets whether data is little-endian. More... | |
(bool) | - or:offset: |
Performs a bitwise "or" operation on a value. More... | |
(FMLiveSwitchDataBuffer *) | - prependWithBuffer: |
Prepends a buffer. More... | |
(void) | - prependWithBuffers: |
Prepends some buffers. More... | |
(int) | - read10SignedWithOffset:bitOffset: |
Reads a 10-bit signed value. More... | |
(int) | - read10WithOffset:bitOffset: |
Reads a 10-bit value. More... | |
(int) | - read11SignedWithOffset:bitOffset: |
Reads a 11-bit signed value. More... | |
(int) | - read11WithOffset:bitOffset: |
Reads a 11-bit value. More... | |
(int) | - read12SignedWithOffset:bitOffset: |
Reads a 12-bit signed value. More... | |
(int) | - read12WithOffset:bitOffset: |
Reads a 12-bit value. More... | |
(int) | - read13SignedWithOffset:bitOffset: |
Reads a 13-bit signed value. More... | |
(int) | - read13WithOffset:bitOffset: |
Reads a 13-bit value. More... | |
(int) | - read14SignedWithOffset:bitOffset: |
Reads a 14-bit signed value. More... | |
(int) | - read14WithOffset:bitOffset: |
Reads a 14-bit value. More... | |
(int) | - read15SignedWithOffset:bitOffset: |
Reads a 15-bit signed value. More... | |
(int) | - read15WithOffset:bitOffset: |
Reads a 15-bit value. More... | |
(int) | - read16SignedWithOffset: |
Reads a 16-bit signed value. More... | |
(int) | - read16SignedWithOffset:offsetPlus: |
Reads a 16-bit signed value. More... | |
(int) | - read16WithOffset: |
Reads a 16-bit value. More... | |
(int) | - read16WithOffset:offsetPlus: |
Reads a 16-bit value. More... | |
(int) | - read17SignedWithOffset:bitOffset: |
Reads a 17-bit signed value. More... | |
(int) | - read17WithOffset:bitOffset: |
Reads a 17-bit value. More... | |
(int) | - read18SignedWithOffset:bitOffset: |
Reads an 18-bit signed value. More... | |
(int) | - read18WithOffset:bitOffset: |
Reads an 18-bit value. More... | |
(int) | - read19SignedWithOffset:bitOffset: |
Reads a 19-bit signed value. More... | |
(int) | - read19WithOffset:bitOffset: |
Reads a 19-bit value. More... | |
(bool) | - read1WithOffset:bitOffset: |
Reads a 1-bit value. More... | |
(int) | - read20SignedWithOffset:bitOffset: |
Reads a 20-bit signed value. More... | |
(int) | - read20WithOffset:bitOffset: |
Reads a 20-bit value. More... | |
(int) | - read21SignedWithOffset:bitOffset: |
Reads a 21-bit signed value. More... | |
(int) | - read21WithOffset:bitOffset: |
Reads a 21-bit value. More... | |
(int) | - read22SignedWithOffset:bitOffset: |
Reads a 22-bit signed value. More... | |
(int) | - read22WithOffset:bitOffset: |
Reads a 22-bit value. More... | |
(int) | - read23SignedWithOffset:bitOffset: |
Reads a 23-bit signed value. More... | |
(int) | - read23WithOffset:bitOffset: |
Reads a 23-bit value. More... | |
(int) | - read24SignedWithOffset: |
Reads a 24-bit signed value. More... | |
(int) | - read24SignedWithOffset:offsetPlus: |
Reads a 24-bit signed value. More... | |
(int) | - read24WithOffset: |
Reads a 24-bit value. More... | |
(int) | - read24WithOffset:offsetPlus: |
Reads a 24-bit value. More... | |
(int) | - read2SignedWithOffset:bitOffset: |
Reads a 2-bit signed value. More... | |
(int) | - read2WithOffset:bitOffset: |
Reads a 2-bit value. More... | |
(long long) | - read32SignedWithOffset: |
Reads a 32-bit signed value. More... | |
(long long) | - read32SignedWithOffset:offsetPlus: |
Reads a 32-bit signed value. More... | |
(long long) | - read32WithOffset: |
Reads a 32-bit value. More... | |
(long long) | - read32WithOffset:offsetPlus: |
Reads a 32-bit value. More... | |
(int) | - read3SignedWithOffset:bitOffset: |
Reads a 3-bit signed value. More... | |
(int) | - read3WithOffset:bitOffset: |
Reads a 3-bit value. More... | |
(long long) | - read40SignedWithOffset: |
Reads a 40-bit signed value. More... | |
(long long) | - read40SignedWithOffset:offsetPlus: |
Reads a 40-bit signed value. More... | |
(long long) | - read40WithOffset: |
Reads a 40-bit value. More... | |
(long long) | - read40WithOffset:offsetPlus: |
Reads a 40-bit value. More... | |
(long long) | - read48SignedWithOffset: |
Reads a 48-bit signed value. More... | |
(long long) | - read48SignedWithOffset:offsetPlus: |
Reads a 48-bit signed value. More... | |
(long long) | - read48WithOffset: |
Reads a 48-bit value. More... | |
(long long) | - read48WithOffset:offsetPlus: |
Reads a 48-bit value. More... | |
(int) | - read4SignedWithOffset:bitOffset: |
Reads a 4-bit signed value. More... | |
(int) | - read4WithOffset:bitOffset: |
Reads a 4-bit value. More... | |
(long long) | - read56SignedWithOffset: |
Reads a 56-bit signed value. More... | |
(long long) | - read56SignedWithOffset:offsetPlus: |
Reads a 56-bit signed value. More... | |
(long long) | - read56WithOffset: |
Reads a 56-bit value. More... | |
(long long) | - read56WithOffset:offsetPlus: |
Reads a 56-bit value. More... | |
(int) | - read5SignedWithOffset:bitOffset: |
Reads a 5-bit signed value. More... | |
(int) | - read5WithOffset:bitOffset: |
Reads a 5-bit value. More... | |
(long long) | - read64SignedWithOffset: |
Reads a 64-bit signed value. More... | |
(long long) | - read64SignedWithOffset:offsetPlus: |
Reads a 64-bit signed value. More... | |
(long long) | - read64WithOffset: |
Reads a 64-bit value. More... | |
(long long) | - read64WithOffset:offsetPlus: |
Reads a 64-bit value. More... | |
(int) | - read6SignedWithOffset:bitOffset: |
Reads a 6-bit signed value. More... | |
(int) | - read6WithOffset:bitOffset: |
Reads a 6-bit value. More... | |
(int) | - read7SignedWithOffset:bitOffset: |
Reads a 7-bit signed value. More... | |
(int) | - read7WithOffset:bitOffset: |
Reads a 7-bit value. More... | |
(int) | - read8SignedWithOffset: |
Reads an 8-bit signed value. More... | |
(int) | - read8SignedWithOffset:offsetPlus: |
Reads an 8-bit signed value. More... | |
(int) | - read8WithOffset: |
Reads an 8-bit value. More... | |
(int) | - read8WithOffset:offsetPlus: |
Reads an 8-bit value. More... | |
(int) | - read9SignedWithOffset:bitOffset: |
Reads a 9-bit signed value. More... | |
(int) | - read9WithOffset:bitOffset: |
Reads a 9-bit value. More... | |
(NSString *) | - readUtf8StringWithOffset: |
Read a UTF-8 string. More... | |
(NSString *) | - readUtf8StringWithOffset:length: |
Reads a UTF-8 string. More... | |
(void) | - resizeWithNewLength: |
Resizes this buffer to a new length with new data being inserted at the end. More... | |
(void) | - resizeWithNewLength:offset: |
Resizes this buffer to a new length with new data being inserted at a given offset. More... | |
(void) | - resizeWithNewLength:offset:setZero: |
Resizes this buffer to a new length with new data being inserted at a given offset. More... | |
(bool) | - sequenceEqualsConstantTimeWithBuffer: |
Compares a data buffer for equality in constant time. More... | |
(bool) | - sequenceEqualsWithBuffer: |
Compares a data buffer for equality. More... | |
(void) | - set: |
Sets the data buffer to the specified value. More... | |
(void) | - set:offset: |
Sets a subset of the data buffer to the specified value. More... | |
(void) | - set:offset:length: |
Sets a subset of the data buffer to the specified value. More... | |
(void) | - setInnerData: |
Sets backing data buffer. More... | |
(void) | - setLittleEndian: |
Sets whether data is little-endian. More... | |
(FMLiveSwitchDataBuffer *) | - subsetWithOffset: |
Gets a subset of this instance. More... | |
(FMLiveSwitchDataBuffer *) | - subsetWithOffset:length: |
Gets a subset of this instance. More... | |
(NSMutableData *) | - toArray |
Converts this instance to an array of bytes. More... | |
(NSMutableData *) | - toBytes |
Converts this instance to an array of bytes. More... | |
(NSString *) | - toHexString |
Converts this instance to a hexadecimal string. More... | |
(NSString *) | - toJson |
Serializes this instance to JSON. More... | |
(bool) | - tryKeep |
Attempts to increment the retain count by one. More... | |
(bool) | - tryRead10WithOffset:bitOffset:value: |
Tries to read a 10-bit value. More... | |
(bool) | - tryRead11WithOffset:bitOffset:value: |
Tries to read an 11-bit value. More... | |
(bool) | - tryRead12WithOffset:bitOffset:value: |
Tries to read a 12-bit value. More... | |
(bool) | - tryRead13WithOffset:bitOffset:value: |
Tries to read a 13-bit value. More... | |
(bool) | - tryRead14WithOffset:bitOffset:value: |
Tries to read a 14-bit value. More... | |
(bool) | - tryRead15WithOffset:bitOffset:value: |
Tries to read a 15-bit value. More... | |
(bool) | - tryRead16WithOffset:value: |
Tries to read a 16-bit value. More... | |
(bool) | - tryRead17WithOffset:bitOffset:value: |
Tries to read a 17-bit value. More... | |
(bool) | - tryRead18WithOffset:bitOffset:value: |
Tries to read an 18-bit value. More... | |
(bool) | - tryRead19WithOffset:bitOffset:value: |
Tries to read a 19-bit value. More... | |
(bool) | - tryRead1WithOffset:bitOffset:value: |
Tries to read a 1-bit value. More... | |
(bool) | - tryRead20WithOffset:bitOffset:value: |
Tries to read a 20-bit value. More... | |
(bool) | - tryRead21WithOffset:bitOffset:value: |
Tries to read a 21-bit value. More... | |
(bool) | - tryRead22WithOffset:bitOffset:value: |
Tries to read a 22-bit value. More... | |
(bool) | - tryRead23WithOffset:bitOffset:value: |
Tries to read a 23-bit value. More... | |
(bool) | - tryRead24WithOffset:value: |
Tries to read a 24-bit value. More... | |
(bool) | - tryRead2WithOffset:bitOffset:value: |
Tries to read a 2-bit value. More... | |
(bool) | - tryRead32WithOffset:value: |
Tries to read a 32-bit value. More... | |
(bool) | - tryRead3WithOffset:bitOffset:value: |
Tries to read a 3-bit value. More... | |
(bool) | - tryRead40WithOffset:value: |
Tries to read a 40-bit value. More... | |
(bool) | - tryRead48WithOffset:value: |
Tries to read a 48-bit value. More... | |
(bool) | - tryRead4WithOffset:bitOffset:value: |
Tries to read a 4-bit value. More... | |
(bool) | - tryRead56WithOffset:value: |
Tries to read a 56-bit value. More... | |
(bool) | - tryRead5WithOffset:bitOffset:value: |
Tries to read a 5-bit value. More... | |
(bool) | - tryRead64WithOffset:value: |
Tries to read a 64-bit value. More... | |
(bool) | - tryRead6WithOffset:bitOffset:value: |
Tries to read a 6-bit value. More... | |
(bool) | - tryRead7WithOffset:bitOffset:value: |
Tries to read a 7-bit value. More... | |
(bool) | - tryRead8WithOffset:value: |
Tries to read an 8-bit value. More... | |
(bool) | - tryRead9WithOffset:bitOffset:value: |
Tries to read a 9-bit value. More... | |
(bool) | - write1:offset:bitOffset: |
Writes a 1-bit value. More... | |
(bool) | - write10:offset:bitOffset: |
Writes a 10-bit value. More... | |
(bool) | - write11:offset:bitOffset: |
Writes an 11-bit value. More... | |
(bool) | - write12:offset:bitOffset: |
Writes a 12-bit value. More... | |
(bool) | - write13:offset:bitOffset: |
Writes a 13-bit value. More... | |
(bool) | - write14:offset:bitOffset: |
Writes a 14-bit value. More... | |
(bool) | - write15:offset:bitOffset: |
Writes a 15-bit value. More... | |
(bool) | - write16:offset: |
Writes a 16-bit value. More... | |
(bool) | - write16:offset:offsetPlus: |
Writes a 16-bit value. More... | |
(bool) | - write16Signed:offset: |
Writes a signed 16-bit value. More... | |
(bool) | - write17:offset:bitOffset: |
Writes a 17-bit value. More... | |
(bool) | - write18:offset:bitOffset: |
Writes an 18-bit value. More... | |
(bool) | - write19:offset:bitOffset: |
Writes a 19-bit value. More... | |
(bool) | - write2:offset:bitOffset: |
Writes a 2-bit value. More... | |
(bool) | - write20:offset:bitOffset: |
Writes a 20-bit value. More... | |
(bool) | - write21:offset:bitOffset: |
Writes a 21-bit value. More... | |
(bool) | - write22:offset:bitOffset: |
Writes a 22-bit value. More... | |
(bool) | - write23:offset:bitOffset: |
Writes a 23-bit value. More... | |
(bool) | - write24:offset: |
Writes a 24-bit value. More... | |
(bool) | - write24:offset:offsetPlus: |
Writes a 24-bit value. More... | |
(bool) | - write3:offset:bitOffset: |
Writes a 3-bit value. More... | |
(bool) | - write32:offset: |
Writes a 32-bit value. More... | |
(bool) | - write32:offset:offsetPlus: |
Writes a 32-bit value. More... | |
(bool) | - write4:offset:bitOffset: |
Writes a 4-bit value. More... | |
(bool) | - write40:offset: |
Writes a 40-bit value. More... | |
(bool) | - write40:offset:offsetPlus: |
Writes a 40-bit value. More... | |
(bool) | - write48:offset: |
Writes a 48-bit value. More... | |
(bool) | - write48:offset:offsetPlus: |
Writes a 48-bit value. More... | |
(bool) | - write5:offset:bitOffset: |
Writes a 5-bit value. More... | |
(bool) | - write56:offset: |
Writes a 56-bit value. More... | |
(bool) | - write56:offset:offsetPlus: |
Writes a 56-bit value. More... | |
(bool) | - write6:offset:bitOffset: |
Writes a 6-bit value. More... | |
(bool) | - write64:offset: |
Writes a 64-bit value. More... | |
(bool) | - write64:offset:offsetPlus: |
Writes a 64-bit value. More... | |
(bool) | - write7:offset:bitOffset: |
Writes a 7-bit value. More... | |
(bool) | - write8:offset: |
Writes an 8-bit value. More... | |
(bool) | - write8:offset:offsetPlus: |
Writes an 8-bit value. More... | |
(bool) | - write9:offset:bitOffset: |
Writes a 9-bit value. More... | |
(void) | - writeBytes: |
Writes a byte array to this instance. More... | |
(void) | - writeBytes:bytesIndex:bytesLength:offset: |
Writes a byte array to this instance. More... | |
(void) | - writeBytes:bytesIndex:bytesLength:offset:offsetPlus: |
Writes a byte array to this instance. More... | |
(void) | - writeBytes:bytesIndex:offset: |
Writes a byte array to this instance. More... | |
(void) | - writeBytes:offset: |
Writes a byte array to this instance. More... | |
(void) | - writeWithBuffer: |
Writes a data buffer to this instance. More... | |
(void) | - writeWithBuffer:offset: |
Writes a data buffer to this instance. More... | |
(void) | - writeWithBuffer:offset:offsetPlus: |
Writes a data buffer to this instance. More... | |
(bool) | - xor:offset: |
Performs a bitwise "xor" operation on a value. More... | |
Class Methods | |
(FMLiveSwitchDataBuffer *) | + allocateWithCount: |
Allocates a new data buffer with a given size (in bytes) in big-endian format. More... | |
(FMLiveSwitchDataBuffer *) | + allocateWithCount:littleEndian: |
Allocates a new data buffer with a given size (in bytes). More... | |
(bool) | + areEqualWithBuffer1:buffer2: |
Tests if the two buffers have equal contents. More... | |
(FMLiveSwitchDataBuffer *) | + empty |
Gets an empty data buffer. More... | |
(FMLiveSwitchDataBuffer *) | + fromBytes: |
Creates an instance from an array of bytes. More... | |
(FMLiveSwitchDataBuffer *) | + fromBytes:littleEndian: |
Creates an instance from an array of bytes. More... | |
(FMLiveSwitchDataBuffer *) | + fromHexString: |
Creates an instance from a hexadecimal string. More... | |
(FMLiveSwitchDataBuffer *) | + fromHexString:littleEndian: |
Creates an instance from a hexadecimal string. More... | |
(NSMutableArray *) | + fromJsonArrayWithDataBuffersJson: |
Deserializes an array of instances from JSON. More... | |
(FMLiveSwitchDataBuffer *) | + fromJsonWithDataBufferJson: |
Deserializes an instance from JSON. More... | |
(NSString *) | + toJsonArrayWithDataBuffers: |
Serializes an array of instances to JSON. More... | |
(NSString *) | + toJsonWithDataBuffer: |
Serializes an instance to JSON. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData: |
Produces a new data buffer containing supplied data in big-endian format. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData:index: |
Produces a new data buffer containing supplied data in big-endian format. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData:index:length: |
Produces a new data buffer containing supplied data in big-endian format. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData:index:length:littleEndian: |
Produces a new data buffer containing supplied data. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData:index:littleEndian: |
Produces a new data buffer containing supplied data. More... | |
(FMLiveSwitchDataBuffer *) | + wrapWithData:littleEndian: |
Produces a new data buffer containing supplied data. More... | |
Binary data buffer implementation.
+ (FMLiveSwitchDataBuffer*) allocateWithCount: | (int) | count |
Allocates a new data buffer with a given size (in bytes) in big-endian format.
count | Pre-allocated data buffer size (in bytes). |
+ (FMLiveSwitchDataBuffer*) allocateWithCount: | (int) | count | |
littleEndian: | (bool) | littleEndian | |
Allocates a new data buffer with a given size (in bytes).
count | Pre-allocated data buffer size (in bytes). |
littleEndian | Whether the data is little-endian. |
- (bool) and: | (int) | value | |
offset: | (int) | offset | |
Performs a bitwise "and" operation on a value.
value | The value. |
offset | The offset. |
- (FMLiveSwitchDataBuffer*) appendWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
- (FMLiveSwitchDataBuffer*) appendWithBuffers: | (NSMutableArray *) | buffers |
+ (bool) areEqualWithBuffer1: | (FMLiveSwitchDataBuffer *) | buffer1 | |
buffer2: | (FMLiveSwitchDataBuffer *) | buffer2 | |
Tests if the two buffers have equal contents.
buffer1 | First buffer to test. |
buffer2 | Second buffer to test. |
- (bool) canResizeWithNewLength: | (int) | newLength | |
offset: | (int) | offset | |
Gets whether this buffer can be resized to the new length.
newLength | The new length. |
offset | The offset. |
- (FMLiveSwitchDataBuffer*) clone |
Clones this instance.
- (FMLiveSwitchDataBuffer*) cloneWithLittleEndian: | (bool) | littleEndian |
Clones this instance.
littleEndian | Whether to clone into a little endian buffer. |
- (FMLiveSwitchDataBuffer*) copy |
Copies this instance into new memory.
- (FMLiveSwitchDataBuffer*) copyWithUsePool: | (bool) | usePool |
Copies this instance.
- (NSMutableData*) data |
Gets the data.
Implemented in FMLiveSwitchDataBufferSubset, and FMLiveSwitchCircularDataBuffer.
+ (FMLiveSwitchDataBuffer*) empty |
Gets an empty data buffer.
- (FMLiveSwitchDataBuffer*) free |
Decrements the retain count by one and returns the Buffer to the pool if zero.
Implemented in FMLiveSwitchDataBufferSubset, FMLiveSwitchDataBufferPooled, and FMLiveSwitchCircularDataBuffer.
+ (FMLiveSwitchDataBuffer*) fromBytes: | (NSMutableData *) | bytes |
Creates an instance from an array of bytes.
+ (FMLiveSwitchDataBuffer*) fromBytes: | (NSMutableData *) | bytes | |
littleEndian: | (bool) | littleEndian | |
Creates an instance from an array of bytes.
+ (FMLiveSwitchDataBuffer*) fromHexString: | (NSString *) | hexString |
Creates an instance from a hexadecimal string.
+ (FMLiveSwitchDataBuffer*) fromHexString: | (NSString *) | hexString | |
littleEndian: | (bool) | littleEndian | |
Creates an instance from a hexadecimal string.
+ (NSMutableArray*) fromJsonArrayWithDataBuffersJson: | (NSString *) | dataBuffersJson |
Deserializes an array of instances from JSON.
dataBuffersJson | The data buffers JSON. |
+ (FMLiveSwitchDataBuffer*) fromJsonWithDataBufferJson: | (NSString *) | dataBufferJson |
Deserializes an instance from JSON.
dataBufferJson | The data buffer JSON. |
- (int) index |
Gets the index.
- (NSMutableData*) innerData |
Gets backing data buffer.
- (bool) isPooled |
Gets whether this DataBuffer is from a pool.
Implemented in FMLiveSwitchDataBufferSubset, and FMLiveSwitchDataBufferPooled.
- (bool) isSubset |
Gets whether this DataBuffer is a subset.
Implemented in FMLiveSwitchDataBufferSubset.
- (FMLiveSwitchDataBuffer*) keep |
Increment the retain count by one.
Implemented in FMLiveSwitchDataBufferSubset, and FMLiveSwitchDataBufferPooled.
- (int) length |
Gets the length.
- (bool) littleEndian |
Gets whether data is little-endian.
- (bool) or: | (int) | value | |
offset: | (int) | offset | |
Performs a bitwise "or" operation on a value.
value | The value. |
offset | The offset. |
- (FMLiveSwitchDataBuffer*) prependWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
- (void) prependWithBuffers: | (NSMutableArray *) | buffers |
- (int) read10SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 10-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read10WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 10-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
- (int) read11SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 11-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read11WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 11-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
- (int) read12SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 12-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read12WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 12-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
- (int) read13SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 13-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read13WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 13-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
- (int) read14SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 14-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read14WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 14-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read15SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 15-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read15WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 15-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read16SignedWithOffset: | (int) | offset |
Reads a 16-bit signed value.
offset | The offset. |
- (int) read16SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 16-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read16WithOffset: | (int) | offset |
Reads a 16-bit value.
offset | The offset. |
- (int) read16WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 16-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read17SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 17-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read17WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 17-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read18SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads an 18-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read18WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads an 18-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read19SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 19-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read19WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 19-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (bool) read1WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 1-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read20SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 20-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read20WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 20-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read21SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 21-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read21WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 21-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read22SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 22-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read22WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 22-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read23SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 23-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read23WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 23-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read24SignedWithOffset: | (int) | offset |
Reads a 24-bit signed value.
offset | The offset. |
- (int) read24SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 24-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read24WithOffset: | (int) | offset |
Reads a 24-bit value.
offset | The offset. |
- (int) read24WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 24-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read2SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 2-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read2WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 2-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (long long) read32SignedWithOffset: | (int) | offset |
Reads a 32-bit signed value.
offset | The offset. |
- (long long) read32SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 32-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read32WithOffset: | (int) | offset |
Reads a 32-bit value.
offset | The offset. |
- (long long) read32WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 32-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read3SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 3-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read3WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 3-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (long long) read40SignedWithOffset: | (int) | offset |
Reads a 40-bit signed value.
offset | The offset. |
- (long long) read40SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 40-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read40WithOffset: | (int) | offset |
Reads a 40-bit value.
offset | The offset. |
- (long long) read40WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 40-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read48SignedWithOffset: | (int) | offset |
Reads a 48-bit signed value.
offset | The offset. |
- (long long) read48SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 48-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read48WithOffset: | (int) | offset |
Reads a 48-bit value.
offset | The offset. |
- (long long) read48WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 48-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read4SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 4-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read4WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 4-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (long long) read56SignedWithOffset: | (int) | offset |
Reads a 56-bit signed value.
offset | The offset. |
- (long long) read56SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 56-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read56WithOffset: | (int) | offset |
Reads a 56-bit value.
offset | The offset. |
- (long long) read56WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 56-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read5SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 5-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read5WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 5-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (long long) read64SignedWithOffset: | (int) | offset |
Reads a 64-bit signed value.
offset | The offset. |
- (long long) read64SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 64-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (long long) read64WithOffset: | (int) | offset |
Reads a 64-bit value.
offset | The offset. |
- (long long) read64WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads a 64-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read6SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 6-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read6WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 6-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read7SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 7-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read7WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 7-bit value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read8SignedWithOffset: | (int) | offset |
Reads an 8-bit signed value.
offset | The offset. |
- (int) read8SignedWithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads an 8-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read8WithOffset: | (int) | offset |
Reads an 8-bit value.
offset | The offset. |
- (int) read8WithOffset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Reads an 8-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (int) read9SignedWithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 9-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
- (int) read9WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Reads a 9-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
- (NSString*) readUtf8StringWithOffset: | (int) | offset |
Read a UTF-8 string.
offset | The offset. |
- (NSString*) readUtf8StringWithOffset: | (int) | offset | |
length: | (int) | length | |
Reads a UTF-8 string.
offset | The offset. |
length | The length. |
- (void) resizeWithNewLength: | (int) | newLength |
Resizes this buffer to a new length with new data being inserted at the end.
newLength | The new length. |
- (void) resizeWithNewLength: | (int) | newLength | |
offset: | (int) | offset | |
Resizes this buffer to a new length with new data being inserted at a given offset.
newLength | The new length. |
offset | The offset. |
- (void) resizeWithNewLength: | (int) | newLength | |
offset: | (int) | offset | |
setZero: | (bool) | setZero | |
Resizes this buffer to a new length with new data being inserted at a given offset.
newLength | The new length. |
offset | The offset. |
setZero | Sets empty space to zero. |
- (bool) sequenceEqualsConstantTimeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Compares a data buffer for equality in constant time.
buffer | The buffer. |
true
if the sequences are equal; otherwise, false
. - (bool) sequenceEqualsWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Compares a data buffer for equality.
buffer | The data buffer. |
true
if the sequences are equal; otherwise, false
. - (void) set: | (uint8_t) | value |
Sets the data buffer to the specified value.
value | The value. |
- (void) set: | (uint8_t) | value | |
offset: | (int) | offset | |
Sets a subset of the data buffer to the specified value.
value | The value. |
offset | The offset. |
- (void) set: | (uint8_t) | value | |
offset: | (int) | offset | |
length: | (int) | length | |
Sets a subset of the data buffer to the specified value.
value | The value. |
offset | The offset. |
length | The length. |
- (void) setInnerData: | (NSMutableData *) | value |
Sets backing data buffer.
- (void) setLittleEndian: | (bool) | value |
Sets whether data is little-endian.
- (FMLiveSwitchDataBuffer*) subsetWithOffset: | (int) | offset |
Gets a subset of this instance.
offset | The offset. |
Implemented in FMLiveSwitchDataBufferSubset.
- (FMLiveSwitchDataBuffer*) subsetWithOffset: | (int) | offset | |
length: | (int) | length | |
Gets a subset of this instance.
offset | The offset. |
length | The length. |
Implemented in FMLiveSwitchDataBufferSubset.
- (NSMutableData*) toArray |
Converts this instance to an array of bytes.
- (NSMutableData*) toBytes |
Converts this instance to an array of bytes.
- (NSString*) toHexString |
Converts this instance to a hexadecimal string.
- (NSString*) toJson |
Serializes this instance to JSON.
+ (NSString*) toJsonArrayWithDataBuffers: | (NSMutableArray *) | dataBuffers |
Serializes an array of instances to JSON.
dataBuffers | The data buffers. |
+ (NSString*) toJsonWithDataBuffer: | (FMLiveSwitchDataBuffer *) | dataBuffer |
Serializes an instance to JSON.
dataBuffer | The data buffer. |
- (bool) tryKeep |
Attempts to increment the retain count by one.
- (bool) tryRead10WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 10-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead11WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read an 11-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead12WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 12-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead13WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 13-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead14WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 14-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead15WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 15-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead16WithOffset: | (int) | offset | |
value: | (int *) | value | |
Tries to read a 16-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead17WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 17-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead18WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read an 18-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead19WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 19-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead1WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (bool *) | value | |
Tries to read a 1-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | if set to true [value]. |
- (bool) tryRead20WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 20-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead21WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 21-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead22WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 22-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead23WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 23-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead24WithOffset: | (int) | offset | |
value: | (int *) | value | |
Tries to read a 24-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead2WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 2-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead32WithOffset: | (int) | offset | |
value: | (long long *) | value | |
Tries to read a 32-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead3WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 3-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead40WithOffset: | (int) | offset | |
value: | (long long *) | value | |
Tries to read a 40-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead48WithOffset: | (int) | offset | |
value: | (long long *) | value | |
Tries to read a 48-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead4WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 4-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead56WithOffset: | (int) | offset | |
value: | (long long *) | value | |
Tries to read a 56-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead5WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 5-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead64WithOffset: | (int) | offset | |
value: | (long long *) | value | |
Tries to read a 64-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead6WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 6-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead7WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 7-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
- (bool) tryRead8WithOffset: | (int) | offset | |
value: | (int *) | value | |
Tries to read an 8-bit value.
offset | The offset. |
value | The value. |
- (bool) tryRead9WithOffset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
Tries to read a 9-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
index | The index. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
length: | (int) | length | |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
index | The index. |
length | The length. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
length: | (int) | length | |
littleEndian: | (bool) | littleEndian | |
Produces a new data buffer containing supplied data.
data | The data. |
index | The index. |
length | The length. |
littleEndian | Whether the data is little-endian. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data | |
index: | (int) | index | |
littleEndian: | (bool) | littleEndian | |
Produces a new data buffer containing supplied data.
data | The data. |
index | The index. |
littleEndian | Whether the data is little-endian. |
+ (FMLiveSwitchDataBuffer*) wrapWithData: | (NSMutableData *) | data | |
littleEndian: | (bool) | littleEndian | |
Produces a new data buffer containing supplied data.
data | The data. |
littleEndian | Whether the data is little-endian. |
- (bool) write10: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 10-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write11: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes an 11-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write12: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 12-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write13: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 13-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write14: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 14-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write15: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 15-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write16: | (int) | value | |
offset: | (int) | offset | |
Writes a 16-bit value.
value | The value. |
offset | The offset. |
- (bool) write16: | (int) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 16-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write16Signed: | (int) | value | |
offset: | (int) | offset | |
Writes a signed 16-bit value.
value | The value. |
offset | The offset. |
- (bool) write17: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 17-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write18: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes an 18-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write19: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 19-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write1: | (bool) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 1-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write20: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 20-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write21: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 21-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write22: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 22-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write23: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 23-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write24: | (int) | value | |
offset: | (int) | offset | |
Writes a 24-bit value.
value | The value. |
offset | The offset. |
- (bool) write24: | (int) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 24-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write2: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 2-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write32: | (long long) | value | |
offset: | (int) | offset | |
Writes a 32-bit value.
value | The value. |
offset | The offset. |
- (bool) write32: | (long long) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 32-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write3: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 3-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write40: | (long long) | value | |
offset: | (int) | offset | |
Writes a 40-bit value.
value | The value. |
offset | The offset. |
- (bool) write40: | (long long) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 40-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write48: | (long long) | value | |
offset: | (int) | offset | |
Writes a 48-bit value.
value | The value. |
offset | The offset. |
- (bool) write48: | (long long) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 48-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write4: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 4-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write56: | (long long) | value | |
offset: | (int) | offset | |
Writes a 56-bit value.
value | The value. |
offset | The offset. |
- (bool) write56: | (long long) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 56-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write5: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 5-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write64: | (long long) | value | |
offset: | (int) | offset | |
Writes a 64-bit value.
value | The value. |
offset | The offset. |
- (bool) write64: | (long long) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a 64-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write6: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 6-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write7: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 7-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (bool) write8: | (int) | value | |
offset: | (int) | offset | |
Writes an 8-bit value.
value | The value. |
offset | The offset. |
- (bool) write8: | (int) | value | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes an 8-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
- (bool) write9: | (int) | value | |
offset: | (int) | offset | |
bitOffset: | (int) | bitOffset | |
Writes a 9-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
- (void) writeBytes: | (NSMutableData *) | bytes |
Writes a byte array to this instance.
bytes | The bytes. |
- (void) writeBytes: | (NSMutableData *) | bytes | |
bytesIndex: | (int) | bytesIndex | |
bytesLength: | (int) | bytesLength | |
offset: | (int) | offset | |
Writes a byte array to this instance.
bytes | The bytes. |
bytesIndex | The bytes index. |
bytesLength | The bytes length. |
offset | The offset. |
- (void) writeBytes: | (NSMutableData *) | bytes | |
bytesIndex: | (int) | bytesIndex | |
bytesLength: | (int) | bytesLength | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a byte array to this instance.
bytes | The bytes. |
bytesIndex | The bytes index. |
bytesLength | The bytes length. |
offset | The offset. |
offsetPlus | The offset plus the buffer length. |
- (void) writeBytes: | (NSMutableData *) | bytes | |
bytesIndex: | (int) | bytesIndex | |
offset: | (int) | offset | |
Writes a byte array to this instance.
bytes | The bytes. |
bytesIndex | The bytes index. |
offset | The offset. |
- (void) writeBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
Writes a byte array to this instance.
bytes | The bytes. |
offset | The offset. |
- (void) writeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Writes a data buffer to this instance.
buffer | The buffer. |
- (void) writeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
offset: | (int) | offset | |
Writes a data buffer to this instance.
buffer | The buffer. |
offset | The offset. |
- (void) writeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
offset: | (int) | offset | |
offsetPlus: | (int *) | offsetPlus | |
Writes a data buffer to this instance.
buffer | The buffer. |
offset | The offset. |
offsetPlus | The offset plus the buffer length. |
- (bool) xor: | (int) | value | |
offset: | (int) | offset | |
Performs a bitwise "xor" operation on a value.
value | The value. |
offset | The offset. |