get Bytes
Returns a ByteArray containing the target value.
Return
An array containing the target byte.
Fills the given buffer, starting from the given offset, with the target value.
If the given array's size is less than offset + 1, an exception will be thrown.
Return
1, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the target byte.
Offset position in the buffer array to start writing at.
Default: 0
Returns a ByteArray containing the 4 bytes that make up the target Int value.
Return
An array of 4 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 4 bytes that make up the target Int value.
If the given array's size is less than offset + 4, an exception will be thrown.
Return
4, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target Int.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true
Returns a ByteArray containing the 8 bytes that make up the target Long value.
Return
An array of 8 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 8 bytes that make up the target Long value.
If the given array's size is less than offset + 8, an exception will be thrown.
Return
8, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target Long.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true
Returns a ByteArray containing the 2 bytes that make up the target Short value.
Return
An array of 2 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 2 bytes that make up the target Short value.
If the given array's size is less than offset + 2, an exception will be thrown.
Return
2, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target Short.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true
Returns a ByteArray containing the 4 bytes that make up the target UInt value.
Return
An array of 4 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 4 bytes that make up the target UInt value.
If the given array's size is less than offset + 4, an exception will be thrown.
Order is Big Endian.
Return
4, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target UInt.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true
Returns a ByteArray containing the 8 bytes that make up the target ULong value.
Return
An array of 8 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 8 bytes that make up the target ULong value.
If the given array's size is less than offset + 8, an exception will be thrown.
Order is Big Endian.
Return
8, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target ULong.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true
Returns a ByteArray containing the 2 bytes that make up the target UShort value.
Return
An array of 2 bytes.
Parameters
Whether the bytes should be in Big Endian order.
Default: true
Fills the given buffer, starting from the given offset, with the 2 bytes that make up the target UShort value.
If the given array's size is less than offset + 2, an exception will be thrown.
Order is Big Endian.
Return
2, the number of bytes written to the buffer.
Parameters
ByteArray that will be filled with the bytes from the target UShort.
Offset position in the buffer array to start writing at.
Default: 0
Whether the bytes should be written in Big Endian order.
Default: true