fun ByteBuffer.toBytes(): Bytes
Extension function that converts a ByteBuffer to an instance of Bytes.