toByteArrayLe

Returns this 16-bit value as a new 2-byte array in little-endian order.

The least significant byte is at index 0. Equivalent to writing the value with writeShortLe at offset 0. This function never throws.

Return

a new array of exactly 2 bytes.


Returns this 32-bit value as a new 4-byte array in little-endian order.

The least significant byte is at index 0. Equivalent to writing the value with writeIntLe at offset 0. This function never throws.

Return

a new array of exactly 4 bytes.


Returns this 64-bit value as a new 8-byte array in little-endian order.

The least significant byte is at index 0. Equivalent to writing the value with writeLongLe at offset 0. This function never throws.

Return

a new array of exactly 8 bytes.


Returns this float as a new 4-byte array in little-endian order.

The bit pattern from Float.toRawBits is stored with the least significant byte at index 0, matching writeFloatLe at offset 0. This function never throws.

Return

a new array of exactly 4 bytes.


Returns this double as a new 8-byte array in little-endian order.

The bit pattern from Double.toRawBits is stored with the least significant byte at index 0, matching writeDoubleLe at offset 0. This function never throws.

Return

a new array of exactly 8 bytes.