|
CXI
|
Flexible byte array. More...
Public Member Functions | |
| ByteArray () | |
| Creates an empty byte array. | |
| ByteArray (byte[] val) | |
| Creates a new byte array of same length and content as val. More... | |
| void | setBytes (byte[] val) |
| Sets content of byte array. More... | |
| byte[] | getBytes () |
| Returns reference to content of byte array. More... | |
| int | length () |
| Returns length of byte array. More... | |
| void | setInt (int val) |
| Sets content to 4-byte big endian representation of given integer. More... | |
| int | getInt () |
| Returns value of the integer stored as 4 bytes in big endian representation. More... | |
| void | append (byte[] val) |
| Appends byte[] data to byte array. More... | |
| void | append (ByteArray val) |
| Appends content of another ByteArray to this byte array. More... | |
| void | appendInt2 (int val) |
| Appends an integer to byte array, encoded in 2 bytes big-endian representation. More... | |
| void | appendInt4 (int val) |
| Appends an integer to byte array, encoded in 4 bytes big-endian representation. More... | |
| void | clear () |
| Clears byte array completely. | |
Flexible byte array.
Provides a byte array with variable size that can be used as output parameter for functions instead of the (inflexible) byte[].