toByteArrayBe
Returns this 16-bit value as a new 2-byte array in big-endian order.
The most significant byte is at index 0. Equivalent to writing the value with writeShortBe 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 big-endian order.
The most significant byte is at index 0. Equivalent to writing the value with writeIntBe 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 big-endian order.
The most significant byte is at index 0. Equivalent to writing the value with writeLongBe 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 big-endian order.
The bit pattern from Float.toRawBits is stored with the most significant byte at index 0, matching writeFloatBe 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 big-endian order.
The bit pattern from Double.toRawBits is stored with the most significant byte at index 0, matching writeDoubleBe at offset 0. This function never throws.
Return
a new array of exactly 8 bytes.