tuweni / org.apache.tuweni.bytes / Bytes / toArray

toArray

open fun toArray(): ByteArray! (source)

Extract the bytes of this value into a byte array.

Return
ByteArray!: A byte array with the same content than this value.

open fun toArray(byteOrder: ByteOrder!): ByteArray! (source)

Extract the bytes of this value into a byte array.

Parameters

byteOrder - ByteOrder!: the byte order to apply : big endian or little endian

Return
ByteArray!: A byte array with the same content than this value.