Binary data buffer implementation. More...
Public Member Functions | |
boolean | and (int value, int offset) |
Performs a bitwise "and" operation on a value. More... | |
fm.liveswitch.DataBuffer | append (fm.liveswitch.DataBuffer buffer) |
Appends a buffer. More... | |
fm.liveswitch.DataBuffer | append (fm.liveswitch.DataBuffer[] buffers) |
Appends some buffers. More... | |
boolean | canResize (int newLength, int offset) |
Gets whether this buffer can be resized to the new length. More... | |
fm.liveswitch.DataBuffer | clone () |
Clones this instance. More... | |
fm.liveswitch.DataBuffer | clone (boolean littleEndian) |
Clones this instance. More... | |
fm.liveswitch.DataBuffer | copy () |
Copies this instance into new memory. More... | |
fm.liveswitch.DataBuffer | copy (boolean usePool) |
Copies this instance. More... | |
fm.liveswitch.DataBuffer | free () |
Decrements the retain count by one and returns the Buffer to the pool if zero. More... | |
byte[] | getData () |
Gets the data. More... | |
int | getIndex () |
Gets the index. More... | |
boolean | getIsPooled () |
Gets whether this DataBuffer is from a pool. More... | |
boolean | getIsSubset () |
Gets whether this DataBuffer is a subset. More... | |
int | getLength () |
Gets the length. More... | |
boolean | getLittleEndian () |
Gets whether fm.liveswitch.DataBuffer#getData is little-endian. More... | |
fm.liveswitch.DataBuffer | keep () |
Increment the retain count by one. More... | |
boolean | or (int value, int offset) |
Performs a bitwise "or" operation on a value. More... | |
fm.liveswitch.DataBuffer | prepend (fm.liveswitch.DataBuffer buffer) |
Prepends a buffer. More... | |
void | prepend (fm.liveswitch.DataBuffer[] buffers) |
Prepends some buffers. More... | |
boolean | read1 (int offset, int bitOffset) |
Reads a 1-bit value. More... | |
int | read10 (int offset, int bitOffset) |
Reads a 10-bit value. More... | |
int | read10Signed (int offset, int bitOffset) |
Reads a 10-bit signed value. More... | |
int | read11 (int offset, int bitOffset) |
Reads a 11-bit value. More... | |
int | read11Signed (int offset, int bitOffset) |
Reads a 11-bit signed value. More... | |
int | read12 (int offset, int bitOffset) |
Reads a 12-bit value. More... | |
int | read12Signed (int offset, int bitOffset) |
Reads a 12-bit signed value. More... | |
int | read13 (int offset, int bitOffset) |
Reads a 13-bit value. More... | |
int | read13Signed (int offset, int bitOffset) |
Reads a 13-bit signed value. More... | |
int | read14 (int offset, int bitOffset) |
Reads a 14-bit value. More... | |
int | read14Signed (int offset, int bitOffset) |
Reads a 14-bit signed value. More... | |
int | read15 (int offset, int bitOffset) |
Reads a 15-bit value. More... | |
int | read15Signed (int offset, int bitOffset) |
Reads a 15-bit signed value. More... | |
int | read16 (int offset) |
Reads a 16-bit value. More... | |
int | read16 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 16-bit value. More... | |
int | read16Signed (int offset) |
Reads a 16-bit signed value. More... | |
int | read16Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 16-bit signed value. More... | |
int | read17 (int offset, int bitOffset) |
Reads a 17-bit value. More... | |
int | read17Signed (int offset, int bitOffset) |
Reads a 17-bit signed value. More... | |
int | read18 (int offset, int bitOffset) |
Reads an 18-bit value. More... | |
int | read18Signed (int offset, int bitOffset) |
Reads an 18-bit signed value. More... | |
int | read19 (int offset, int bitOffset) |
Reads a 19-bit value. More... | |
int | read19Signed (int offset, int bitOffset) |
Reads a 19-bit signed value. More... | |
int | read2 (int offset, int bitOffset) |
Reads a 2-bit value. More... | |
int | read20 (int offset, int bitOffset) |
Reads a 20-bit value. More... | |
int | read20Signed (int offset, int bitOffset) |
Reads a 20-bit signed value. More... | |
int | read21 (int offset, int bitOffset) |
Reads a 21-bit value. More... | |
int | read21Signed (int offset, int bitOffset) |
Reads a 21-bit signed value. More... | |
int | read22 (int offset, int bitOffset) |
Reads a 22-bit value. More... | |
int | read22Signed (int offset, int bitOffset) |
Reads a 22-bit signed value. More... | |
int | read23 (int offset, int bitOffset) |
Reads a 23-bit value. More... | |
int | read23Signed (int offset, int bitOffset) |
Reads a 23-bit signed value. More... | |
int | read24 (int offset) |
Reads a 24-bit value. More... | |
int | read24 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 24-bit value. More... | |
int | read24Signed (int offset) |
Reads a 24-bit signed value. More... | |
int | read24Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 24-bit signed value. More... | |
int | read2Signed (int offset, int bitOffset) |
Reads a 2-bit signed value. More... | |
int | read3 (int offset, int bitOffset) |
Reads a 3-bit value. More... | |
long | read32 (int offset) |
Reads a 32-bit value. More... | |
long | read32 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 32-bit value. More... | |
long | read32Signed (int offset) |
Reads a 32-bit signed value. More... | |
long | read32Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 32-bit signed value. More... | |
int | read3Signed (int offset, int bitOffset) |
Reads a 3-bit signed value. More... | |
int | read4 (int offset, int bitOffset) |
Reads a 4-bit value. More... | |
long | read40 (int offset) |
Reads a 40-bit value. More... | |
long | read40 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 40-bit value. More... | |
long | read40Signed (int offset) |
Reads a 40-bit signed value. More... | |
long | read40Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 40-bit signed value. More... | |
long | read48 (int offset) |
Reads a 48-bit value. More... | |
long | read48 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 48-bit value. More... | |
long | read48Signed (int offset) |
Reads a 48-bit signed value. More... | |
long | read48Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 48-bit signed value. More... | |
int | read4Signed (int offset, int bitOffset) |
Reads a 4-bit signed value. More... | |
int | read5 (int offset, int bitOffset) |
Reads a 5-bit value. More... | |
long | read56 (int offset) |
Reads a 56-bit value. More... | |
long | read56 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 56-bit value. More... | |
long | read56Signed (int offset) |
Reads a 56-bit signed value. More... | |
long | read56Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 56-bit signed value. More... | |
int | read5Signed (int offset, int bitOffset) |
Reads a 5-bit signed value. More... | |
int | read6 (int offset, int bitOffset) |
Reads a 6-bit value. More... | |
long | read64 (int offset) |
Reads a 64-bit value. More... | |
long | read64 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 64-bit value. More... | |
long | read64Signed (int offset) |
Reads a 64-bit signed value. More... | |
long | read64Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads a 64-bit signed value. More... | |
int | read6Signed (int offset, int bitOffset) |
Reads a 6-bit signed value. More... | |
int | read7 (int offset, int bitOffset) |
Reads a 7-bit value. More... | |
int | read7Signed (int offset, int bitOffset) |
Reads a 7-bit signed value. More... | |
int | read8 (int offset) |
Reads an 8-bit value. More... | |
int | read8 (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads an 8-bit value. More... | |
int | read8Signed (int offset) |
Reads an 8-bit signed value. More... | |
int | read8Signed (int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Reads an 8-bit signed value. More... | |
int | read9 (int offset, int bitOffset) |
Reads a 9-bit value. More... | |
int | read9Signed (int offset, int bitOffset) |
Reads a 9-bit signed value. More... | |
String | readUtf8String (int offset) |
Read a UTF-8 string. More... | |
String | readUtf8String (int offset, int length) |
Reads a UTF-8 string. More... | |
void | resize (int newLength) |
Resizes this buffer to a new length with new data being inserted at the end. More... | |
void | resize (int newLength, int offset) |
Resizes this buffer to a new length with new data being inserted at a given offset. More... | |
void | resize (int newLength, int offset, boolean setZero) |
Resizes this buffer to a new length with new data being inserted at a given offset. More... | |
boolean | sequenceEquals (fm.liveswitch.DataBuffer buffer) |
Compares a data buffer for equality. More... | |
boolean | sequenceEqualsConstantTime (fm.liveswitch.DataBuffer buffer) |
Compares a data buffer for equality in constant time. More... | |
void | set (byte value) |
Sets the data buffer to the specified value. More... | |
void | set (byte value, int offset) |
Sets a subset of the data buffer to the specified value. More... | |
void | set (byte value, int offset, int length) |
Sets a subset of the data buffer to the specified value. More... | |
void | setLittleEndian (boolean value) |
Sets whether fm.liveswitch.DataBuffer#getData is little-endian. More... | |
fm.liveswitch.DataBuffer | subset (int offset) |
Gets a subset of this instance. More... | |
fm.liveswitch.DataBuffer | subset (int offset, int length) |
Gets a subset of this instance. More... | |
byte[] | toArray () |
Converts this instance to an array of bytes. More... | |
byte[] | toBytes () |
Converts this instance to an array of bytes. More... | |
String | toHexString () |
Converts this instance to a hexadecimal string. More... | |
String | toJson () |
Serializes this instance to JSON. More... | |
boolean | tryKeep () |
Attempts to increment the retain count by one. More... | |
boolean | tryRead1 (int offset, int bitOffset, fm.liveswitch.BooleanHolder value) |
Tries to read a 1-bit value. More... | |
boolean | tryRead10 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 10-bit value. More... | |
boolean | tryRead11 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read an 11-bit value. More... | |
boolean | tryRead12 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 12-bit value. More... | |
boolean | tryRead13 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 13-bit value. More... | |
boolean | tryRead14 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 14-bit value. More... | |
boolean | tryRead15 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 15-bit value. More... | |
boolean | tryRead16 (int offset, fm.liveswitch.IntegerHolder value) |
Tries to read a 16-bit value. More... | |
boolean | tryRead17 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 17-bit value. More... | |
boolean | tryRead18 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read an 18-bit value. More... | |
boolean | tryRead19 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 19-bit value. More... | |
boolean | tryRead2 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 2-bit value. More... | |
boolean | tryRead20 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 20-bit value. More... | |
boolean | tryRead21 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 21-bit value. More... | |
boolean | tryRead22 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 22-bit value. More... | |
boolean | tryRead23 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 23-bit value. More... | |
boolean | tryRead24 (int offset, fm.liveswitch.IntegerHolder value) |
Tries to read a 24-bit value. More... | |
boolean | tryRead3 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 3-bit value. More... | |
boolean | tryRead32 (int offset, fm.liveswitch.LongHolder value) |
Tries to read a 32-bit value. More... | |
boolean | tryRead4 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 4-bit value. More... | |
boolean | tryRead40 (int offset, fm.liveswitch.LongHolder value) |
Tries to read a 40-bit value. More... | |
boolean | tryRead48 (int offset, fm.liveswitch.LongHolder value) |
Tries to read a 48-bit value. More... | |
boolean | tryRead5 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 5-bit value. More... | |
boolean | tryRead56 (int offset, fm.liveswitch.LongHolder value) |
Tries to read a 56-bit value. More... | |
boolean | tryRead6 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 6-bit value. More... | |
boolean | tryRead64 (int offset, fm.liveswitch.LongHolder value) |
Tries to read a 64-bit value. More... | |
boolean | tryRead7 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 7-bit value. More... | |
boolean | tryRead8 (int offset, fm.liveswitch.IntegerHolder value) |
Tries to read an 8-bit value. More... | |
boolean | tryRead9 (int offset, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 9-bit value. More... | |
void | write (fm.liveswitch.DataBuffer buffer) |
Writes a data buffer to this instance. More... | |
void | write (fm.liveswitch.DataBuffer buffer, int offset) |
Writes a data buffer to this instance. More... | |
void | write (fm.liveswitch.DataBuffer buffer, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a data buffer to this instance. More... | |
boolean | write1 (boolean value, int offset, int bitOffset) |
Writes a 1-bit value. More... | |
boolean | write10 (int value, int offset, int bitOffset) |
Writes a 10-bit value. More... | |
boolean | write11 (int value, int offset, int bitOffset) |
Writes an 11-bit value. More... | |
boolean | write12 (int value, int offset, int bitOffset) |
Writes a 12-bit value. More... | |
boolean | write13 (int value, int offset, int bitOffset) |
Writes a 13-bit value. More... | |
boolean | write14 (int value, int offset, int bitOffset) |
Writes a 14-bit value. More... | |
boolean | write15 (int value, int offset, int bitOffset) |
Writes a 15-bit value. More... | |
boolean | write16 (int value, int offset) |
Writes a 16-bit value. More... | |
boolean | write16 (int value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 16-bit value. More... | |
boolean | write16Signed (int value, int offset) |
Writes a signed 16-bit value. More... | |
boolean | write17 (int value, int offset, int bitOffset) |
Writes a 17-bit value. More... | |
boolean | write18 (int value, int offset, int bitOffset) |
Writes an 18-bit value. More... | |
boolean | write19 (int value, int offset, int bitOffset) |
Writes a 19-bit value. More... | |
boolean | write2 (int value, int offset, int bitOffset) |
Writes a 2-bit value. More... | |
boolean | write20 (int value, int offset, int bitOffset) |
Writes a 20-bit value. More... | |
boolean | write21 (int value, int offset, int bitOffset) |
Writes a 21-bit value. More... | |
boolean | write22 (int value, int offset, int bitOffset) |
Writes a 22-bit value. More... | |
boolean | write23 (int value, int offset, int bitOffset) |
Writes a 23-bit value. More... | |
boolean | write24 (int value, int offset) |
Writes a 24-bit value. More... | |
boolean | write24 (int value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 24-bit value. More... | |
boolean | write3 (int value, int offset, int bitOffset) |
Writes a 3-bit value. More... | |
boolean | write32 (long value, int offset) |
Writes a 32-bit value. More... | |
boolean | write32 (long value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 32-bit value. More... | |
boolean | write4 (int value, int offset, int bitOffset) |
Writes a 4-bit value. More... | |
boolean | write40 (long value, int offset) |
Writes a 40-bit value. More... | |
boolean | write40 (long value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 40-bit value. More... | |
boolean | write48 (long value, int offset) |
Writes a 48-bit value. More... | |
boolean | write48 (long value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 48-bit value. More... | |
boolean | write5 (int value, int offset, int bitOffset) |
Writes a 5-bit value. More... | |
boolean | write56 (long value, int offset) |
Writes a 56-bit value. More... | |
boolean | write56 (long value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 56-bit value. More... | |
boolean | write6 (int value, int offset, int bitOffset) |
Writes a 6-bit value. More... | |
boolean | write64 (long value, int offset) |
Writes a 64-bit value. More... | |
boolean | write64 (long value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a 64-bit value. More... | |
boolean | write7 (int value, int offset, int bitOffset) |
Writes a 7-bit value. More... | |
boolean | write8 (int value, int offset) |
Writes an 8-bit value. More... | |
boolean | write8 (int value, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes an 8-bit value. More... | |
boolean | write9 (int value, int offset, int bitOffset) |
Writes a 9-bit value. More... | |
void | writeBytes (byte[] bytes) |
Writes a byte array to this instance. More... | |
void | writeBytes (byte[] bytes, int bytesIndex, int bytesLength, int offset) |
Writes a byte array to this instance. More... | |
void | writeBytes (byte[] bytes, int bytesIndex, int bytesLength, int offset, fm.liveswitch.IntegerHolder offsetPlus) |
Writes a byte array to this instance. More... | |
void | writeBytes (byte[] bytes, int bytesIndex, int offset) |
Writes a byte array to this instance. More... | |
void | writeBytes (byte[] bytes, int offset) |
Writes a byte array to this instance. More... | |
boolean | xor (int value, int offset) |
Performs a bitwise "xor" operation on a value. More... | |
Static Public Member Functions | |
static fm.liveswitch.DataBuffer | allocate (int count) |
Allocates a new data buffer with a given size (in bytes) in big-endian format. More... | |
static fm.liveswitch.DataBuffer | allocate (int count, boolean littleEndian) |
Allocates a new data buffer with a given size (in bytes). More... | |
static boolean | areEqual (fm.liveswitch.DataBuffer buffer1, fm.liveswitch.DataBuffer buffer2) |
Tests if the two buffers have equal contents. More... | |
static fm.liveswitch.DataBuffer | fromBytes (byte[] bytes) |
Creates an instance from an array of bytes. More... | |
static fm.liveswitch.DataBuffer | fromBytes (byte[] bytes, boolean littleEndian) |
Creates an instance from an array of bytes. More... | |
static fm.liveswitch.DataBuffer | fromHexString (String hexString) |
Creates an instance from a hexadecimal string. More... | |
static fm.liveswitch.DataBuffer | fromHexString (String hexString, boolean littleEndian) |
Creates an instance from a hexadecimal string. More... | |
static fm.liveswitch.DataBuffer | fromJson (String dataBufferJson) |
Deserializes an instance from JSON. More... | |
static fm.liveswitch.DataBuffer[] | fromJsonArray (String dataBuffersJson) |
Deserializes an array of instances from JSON. More... | |
static fm.liveswitch.DataBuffer | getEmpty () |
Gets an empty data buffer. More... | |
static String | toJson (final fm.liveswitch.DataBuffer dataBuffer) |
Serializes an instance to JSON. More... | |
static String | toJsonArray (fm.liveswitch.DataBuffer[] dataBuffers) |
Serializes an array of instances to JSON. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data) |
Produces a new data buffer containing supplied data in big-endian format. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data, int index) |
Produces a new data buffer containing supplied data in big-endian format. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data, int index, int length) |
Produces a new data buffer containing supplied data in big-endian format. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data, int index, int length, boolean littleEndian) |
Produces a new data buffer containing supplied data. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data, int index, boolean littleEndian) |
Produces a new data buffer containing supplied data. More... | |
static fm.liveswitch.DataBuffer | wrap (byte[] data, boolean littleEndian) |
Produces a new data buffer containing supplied data. More... | |
Protected Member Functions | |
byte[] | getInnerData () |
Gets backing data buffer. More... | |
void | setIndex (int value) |
Sets the index. More... | |
void | setInnerData (byte[] value) |
Sets backing data buffer. More... | |
void | setLength (int value) |
Sets the length. More... | |
Binary data buffer implementation.
|
static |
Allocates a new data buffer with a given size (in bytes) in big-endian format.
count | Pre-allocated data buffer size (in bytes). |
|
static |
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. |
boolean fm.liveswitch.DataBuffer.and | ( | int | value, |
int | offset | ||
) |
Performs a bitwise "and" operation on a value.
value | The value. |
offset | The offset. |
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.append | ( | fm.liveswitch.DataBuffer | buffer | ) |
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.append | ( | fm.liveswitch.DataBuffer[] | buffers | ) |
Appends some buffers.
buffers | The buffers. |
Reimplemented in fm.liveswitch.DataBufferSubset.
|
static |
Tests if the two buffers have equal contents.
buffer1 | First buffer to test. |
buffer2 | Second buffer to test. |
boolean fm.liveswitch.DataBuffer.canResize | ( | int | newLength, |
int | offset | ||
) |
Gets whether this buffer can be resized to the new length.
newLength | The new length. |
offset | The offset. |
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.clone | ( | ) |
Clones this instance.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.clone | ( | boolean | littleEndian | ) |
Clones this instance.
littleEndian | Whether to clone into a little endian buffer. |
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.copy | ( | ) |
Copies this instance into new memory.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.copy | ( | boolean | usePool | ) |
Copies this instance.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.free | ( | ) |
Decrements the retain count by one and returns the Buffer to the pool if zero.
Reimplemented in fm.liveswitch.DataBufferSubset, and fm.liveswitch.CircularDataBuffer.
|
static |
Creates an instance from an array of bytes.
|
static |
Creates an instance from an array of bytes.
|
static |
Creates an instance from a hexadecimal string.
|
static |
Creates an instance from a hexadecimal string.
|
static |
Deserializes an instance from JSON.
dataBufferJson | The data buffer JSON. |
|
static |
Deserializes an array of instances from JSON.
dataBuffersJson | The data buffers JSON. |
byte [] fm.liveswitch.DataBuffer.getData | ( | ) |
Gets the data.
Reimplemented in fm.liveswitch.DataBufferSubset, and fm.liveswitch.CircularDataBuffer.
|
static |
Gets an empty data buffer.
int fm.liveswitch.DataBuffer.getIndex | ( | ) |
Gets the index.
|
protected |
Gets backing data buffer.
boolean fm.liveswitch.DataBuffer.getIsPooled | ( | ) |
Gets whether this DataBuffer is from a pool.
Reimplemented in fm.liveswitch.DataBufferSubset.
boolean fm.liveswitch.DataBuffer.getIsSubset | ( | ) |
Gets whether this DataBuffer is a subset.
Reimplemented in fm.liveswitch.DataBufferSubset.
int fm.liveswitch.DataBuffer.getLength | ( | ) |
Gets the length.
boolean fm.liveswitch.DataBuffer.getLittleEndian | ( | ) |
Gets whether fm.liveswitch.DataBuffer#getData is little-endian.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.keep | ( | ) |
Increment the retain count by one.
Reimplemented in fm.liveswitch.DataBufferSubset.
boolean fm.liveswitch.DataBuffer.or | ( | int | value, |
int | offset | ||
) |
Performs a bitwise "or" operation on a value.
value | The value. |
offset | The offset. |
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.prepend | ( | fm.liveswitch.DataBuffer | buffer | ) |
void fm.liveswitch.DataBuffer.prepend | ( | fm.liveswitch.DataBuffer[] | buffers | ) |
Prepends some buffers.
buffers | The buffers. |
Reimplemented in fm.liveswitch.DataBufferSubset.
boolean fm.liveswitch.DataBuffer.read1 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 1-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read10 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 10-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
int fm.liveswitch.DataBuffer.read10Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 10-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read11 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 11-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
int fm.liveswitch.DataBuffer.read11Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 11-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read12 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 12-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
int fm.liveswitch.DataBuffer.read12Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 12-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read13 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 13-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
int fm.liveswitch.DataBuffer.read13Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 13-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read14 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 14-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read14Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 14-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read15 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 15-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read15Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 15-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read16 | ( | int | offset | ) |
Reads a 16-bit value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read16 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 16-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read16Signed | ( | int | offset | ) |
Reads a 16-bit signed value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read16Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 16-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read17 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 17-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read17Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 17-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read18 | ( | int | offset, |
int | bitOffset | ||
) |
Reads an 18-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read18Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads an 18-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read19 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 19-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read19Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 19-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read2 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 2-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read20 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 20-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read20Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 20-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read21 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 21-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read21Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 21-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read22 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 22-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read22Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 22-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read23 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 23-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read23Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 23-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read24 | ( | int | offset | ) |
Reads a 24-bit value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read24 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 24-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read24Signed | ( | int | offset | ) |
Reads a 24-bit signed value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read24Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 24-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read2Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 2-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read3 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 3-bit value.
offset | The offset. |
bitOffset | The bit offset. |
long fm.liveswitch.DataBuffer.read32 | ( | int | offset | ) |
Reads a 32-bit value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read32 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 32-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read32Signed | ( | int | offset | ) |
Reads a 32-bit signed value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read32Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 32-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read3Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 3-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read4 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 4-bit value.
offset | The offset. |
bitOffset | The bit offset. |
long fm.liveswitch.DataBuffer.read40 | ( | int | offset | ) |
Reads a 40-bit value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read40 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 40-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read40Signed | ( | int | offset | ) |
Reads a 40-bit signed value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read40Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 40-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read48 | ( | int | offset | ) |
Reads a 48-bit value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read48 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 48-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read48Signed | ( | int | offset | ) |
Reads a 48-bit signed value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read48Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 48-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read4Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 4-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read5 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 5-bit value.
offset | The offset. |
bitOffset | The bit offset. |
long fm.liveswitch.DataBuffer.read56 | ( | int | offset | ) |
Reads a 56-bit value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read56 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 56-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read56Signed | ( | int | offset | ) |
Reads a 56-bit signed value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read56Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 56-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read5Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 5-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read6 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 6-bit value.
offset | The offset. |
bitOffset | The bit offset. |
long fm.liveswitch.DataBuffer.read64 | ( | int | offset | ) |
Reads a 64-bit value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read64 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 64-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
long fm.liveswitch.DataBuffer.read64Signed | ( | int | offset | ) |
Reads a 64-bit signed value.
offset | The offset. |
long fm.liveswitch.DataBuffer.read64Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads a 64-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read6Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 6-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read7 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 7-bit value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read7Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 7-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
int fm.liveswitch.DataBuffer.read8 | ( | int | offset | ) |
Reads an 8-bit value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read8 | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads an 8-bit value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read8Signed | ( | int | offset | ) |
Reads an 8-bit signed value.
offset | The offset. |
int fm.liveswitch.DataBuffer.read8Signed | ( | int | offset, |
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Reads an 8-bit signed value.
offset | The offset. |
offsetPlus | The offset plus the value length. |
int fm.liveswitch.DataBuffer.read9 | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 9-bit value.
offset | The offset. |
bitOffset | The bitoffset. |
int fm.liveswitch.DataBuffer.read9Signed | ( | int | offset, |
int | bitOffset | ||
) |
Reads a 9-bit signed value.
offset | The offset. |
bitOffset | The bit offset. |
String fm.liveswitch.DataBuffer.readUtf8String | ( | int | offset | ) |
Read a UTF-8 string.
offset | The offset. |
String fm.liveswitch.DataBuffer.readUtf8String | ( | int | offset, |
int | length | ||
) |
Reads a UTF-8 string.
offset | The offset. |
length | The length. |
void fm.liveswitch.DataBuffer.resize | ( | int | newLength | ) |
Resizes this buffer to a new length with new data being inserted at the end.
newLength | The new length. |
void fm.liveswitch.DataBuffer.resize | ( | int | newLength, |
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 fm.liveswitch.DataBuffer.resize | ( | int | newLength, |
int | offset, | ||
boolean | 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. |
boolean fm.liveswitch.DataBuffer.sequenceEquals | ( | fm.liveswitch.DataBuffer | buffer | ) |
Compares a data buffer for equality.
buffer | The data buffer. |
boolean fm.liveswitch.DataBuffer.sequenceEqualsConstantTime | ( | fm.liveswitch.DataBuffer | buffer | ) |
Compares a data buffer for equality in constant time.
buffer | The buffer. |
void fm.liveswitch.DataBuffer.set | ( | byte | value | ) |
Sets the data buffer to the specified value.
value | The value. |
void fm.liveswitch.DataBuffer.set | ( | byte | value, |
int | offset | ||
) |
Sets a subset of the data buffer to the specified value.
value | The value. |
offset | The offset. |
void fm.liveswitch.DataBuffer.set | ( | byte | value, |
int | offset, | ||
int | length | ||
) |
Sets a subset of the data buffer to the specified value.
value | The value. |
offset | The offset. |
length | The length. |
|
protected |
Sets the index.
|
protected |
Sets backing data buffer.
|
protected |
Sets the length.
void fm.liveswitch.DataBuffer.setLittleEndian | ( | boolean | value | ) |
Sets whether fm.liveswitch.DataBuffer#getData is little-endian.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.subset | ( | int | offset | ) |
Gets a subset of this instance.
offset | The offset. |
Reimplemented in fm.liveswitch.DataBufferSubset.
fm.liveswitch.DataBuffer fm.liveswitch.DataBuffer.subset | ( | int | offset, |
int | length | ||
) |
Gets a subset of this instance.
offset | The offset. |
length | The length. |
Reimplemented in fm.liveswitch.DataBufferSubset.
byte [] fm.liveswitch.DataBuffer.toArray | ( | ) |
Converts this instance to an array of bytes.
byte [] fm.liveswitch.DataBuffer.toBytes | ( | ) |
Converts this instance to an array of bytes.
String fm.liveswitch.DataBuffer.toHexString | ( | ) |
Converts this instance to a hexadecimal string.
String fm.liveswitch.DataBuffer.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
dataBuffer | The data buffer. |
|
static |
Serializes an array of instances to JSON.
dataBuffers | The data buffers. |
boolean fm.liveswitch.DataBuffer.tryKeep | ( | ) |
Attempts to increment the retain count by one.
boolean fm.liveswitch.DataBuffer.tryRead1 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.BooleanHolder | value | ||
) |
Tries to read a 1-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | if set to true
|
boolean fm.liveswitch.DataBuffer.tryRead10 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 10-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead11 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read an 11-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead12 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 12-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead13 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 13-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead14 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 14-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead15 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 15-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead16 | ( | int | offset, |
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 16-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead17 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 17-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead18 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read an 18-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead19 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 19-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead2 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 2-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead20 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 20-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead21 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 21-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead22 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 22-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead23 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 23-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead24 | ( | int | offset, |
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 24-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead3 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 3-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead32 | ( | int | offset, |
fm.liveswitch.LongHolder | value | ||
) |
Tries to read a 32-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead4 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 4-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead40 | ( | int | offset, |
fm.liveswitch.LongHolder | value | ||
) |
Tries to read a 40-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead48 | ( | int | offset, |
fm.liveswitch.LongHolder | value | ||
) |
Tries to read a 48-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead5 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 5-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead56 | ( | int | offset, |
fm.liveswitch.LongHolder | value | ||
) |
Tries to read a 56-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead6 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 6-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead64 | ( | int | offset, |
fm.liveswitch.LongHolder | value | ||
) |
Tries to read a 64-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead7 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 7-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead8 | ( | int | offset, |
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read an 8-bit value.
offset | The offset. |
value | The value. |
boolean fm.liveswitch.DataBuffer.tryRead9 | ( | int | offset, |
int | bitOffset, | ||
fm.liveswitch.IntegerHolder | value | ||
) |
Tries to read a 9-bit value.
offset | The offset. |
bitOffset | The bit offset. |
value | The value. |
|
static |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
|
static |
Produces a new data buffer containing supplied data.
data | The data. |
littleEndian | Whether the data is little-endian. |
|
static |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
index | The index. |
|
static |
Produces a new data buffer containing supplied data.
data | The data. |
index | The index. |
littleEndian | Whether the data is little-endian. |
|
static |
Produces a new data buffer containing supplied data in big-endian format.
data | The data. |
index | The index. |
length | The length. |
|
static |
Produces a new data buffer containing supplied data.
data | The data. |
index | The index. |
length | The length. |
littleEndian | Whether the data is little-endian. |
void fm.liveswitch.DataBuffer.write | ( | fm.liveswitch.DataBuffer | buffer | ) |
Writes a data buffer to this instance.
buffer | The buffer. |
void fm.liveswitch.DataBuffer.write | ( | fm.liveswitch.DataBuffer | buffer, |
int | offset | ||
) |
Writes a data buffer to this instance.
buffer | The buffer. |
offset | The offset. |
void fm.liveswitch.DataBuffer.write | ( | fm.liveswitch.DataBuffer | buffer, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a data buffer to this instance.
buffer | The buffer. |
offset | The offset. |
offsetPlus | The offset plus the buffer length. |
boolean fm.liveswitch.DataBuffer.write1 | ( | boolean | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 1-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write10 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 10-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write11 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes an 11-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write12 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 12-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write13 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 13-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write14 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 14-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write15 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 15-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write16 | ( | int | value, |
int | offset | ||
) |
Writes a 16-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write16 | ( | int | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 16-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write16Signed | ( | int | value, |
int | offset | ||
) |
Writes a signed 16-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write17 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 17-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write18 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes an 18-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write19 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 19-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write2 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 2-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write20 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 20-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write21 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 21-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write22 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 22-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write23 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 23-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write24 | ( | int | value, |
int | offset | ||
) |
Writes a 24-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write24 | ( | int | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 24-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write3 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 3-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write32 | ( | long | value, |
int | offset | ||
) |
Writes a 32-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write32 | ( | long | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 32-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write4 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 4-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write40 | ( | long | value, |
int | offset | ||
) |
Writes a 40-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write40 | ( | long | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 40-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write48 | ( | long | value, |
int | offset | ||
) |
Writes a 48-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write48 | ( | long | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 48-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write5 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 5-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write56 | ( | long | value, |
int | offset | ||
) |
Writes a 56-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write56 | ( | long | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 56-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write6 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 6-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write64 | ( | long | value, |
int | offset | ||
) |
Writes a 64-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write64 | ( | long | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes a 64-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write7 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 7-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
boolean fm.liveswitch.DataBuffer.write8 | ( | int | value, |
int | offset | ||
) |
Writes an 8-bit value.
value | The value. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.write8 | ( | int | value, |
int | offset, | ||
fm.liveswitch.IntegerHolder | offsetPlus | ||
) |
Writes an 8-bit value.
value | The value. |
offset | The offset. |
offsetPlus | The offset plus the value length. |
boolean fm.liveswitch.DataBuffer.write9 | ( | int | value, |
int | offset, | ||
int | bitOffset | ||
) |
Writes a 9-bit value.
value | The value. |
offset | The offset. |
bitOffset | The bit offset. |
void fm.liveswitch.DataBuffer.writeBytes | ( | byte[] | bytes | ) |
Writes a byte array to this instance.
bytes | The bytes. |
void fm.liveswitch.DataBuffer.writeBytes | ( | byte[] | bytes, |
int | bytesIndex, | ||
int | bytesLength, | ||
int | offset | ||
) |
Writes a byte array to this instance.
bytes | The bytes. |
bytesIndex | The bytes index. |
bytesLength | The bytes length. |
offset | The offset. |
void fm.liveswitch.DataBuffer.writeBytes | ( | byte[] | bytes, |
int | bytesIndex, | ||
int | bytesLength, | ||
int | offset, | ||
fm.liveswitch.IntegerHolder | 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 fm.liveswitch.DataBuffer.writeBytes | ( | byte[] | bytes, |
int | bytesIndex, | ||
int | offset | ||
) |
Writes a byte array to this instance.
bytes | The bytes. |
bytesIndex | The bytes index. |
offset | The offset. |
void fm.liveswitch.DataBuffer.writeBytes | ( | byte[] | bytes, |
int | offset | ||
) |
Writes a byte array to this instance.
bytes | The bytes. |
offset | The offset. |
boolean fm.liveswitch.DataBuffer.xor | ( | int | value, |
int | offset | ||
) |
Performs a bitwise "xor" operation on a value.
value | The value. |
offset | The offset. |