to Bytes
inline fun BigInteger.toBytes( buffer: ByteArray, bytes: Int, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0)
Content copied to clipboard
Writes this value as bytes to buffer byte array starting from offset with specified byteOrder.
inline fun BigInteger.toBytes( bytes: Int, byteOrder: ByteOrder = nativeByteOrder, receiver: (index: Int, byte: Byte) -> Unit)
Content copied to clipboard
Writes this value as bytes to receiver with specified byteOrder.
inline fun Long.toBytes( buffer: ByteArray, bytes: Int = 8, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0)
Content copied to clipboard
Writes this value as bytes to buffer byte array starting from offset with specified byteOrder.
inline fun Long.toBytes( bytes: Int = Long.SIZE_BYTES, byteOrder: ByteOrder = nativeByteOrder, receiver: (index: Int, byte: Byte) -> Unit)
Content copied to clipboard
Writes this value as bytes to receiver with specified byteOrder.
inline fun ULong.toBytes( buffer: ByteArray, bytes: Int = 8, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0)
Content copied to clipboard
Writes this value as bytes to buffer byte array starting from offset with specified byteOrder.
inline fun ULong.toBytes( bytes: Int = ULong.SIZE_BYTES, byteOrder: ByteOrder = nativeByteOrder, receiver: (index: Int, byte: Byte) -> Unit)
Content copied to clipboard
Writes this value as bytes to receiver with specified byteOrder.