Companion
Functions
Link copied to clipboard
Decodes the Base64-encoded bytes and returns their value as a byte string. Returns null if this is not a Base64-encoded sequence of bytes.
Link copied to clipboard
Decodes the hex-encoded bytes and returns their value a byte string.
Link copied to clipboard
Returns a new ByteString containing the charset
-encoded bytes of this String.
Link copied to clipboard
Link copied to clipboard
Returns a new byte string containing a clone of the bytes of data
.
Link copied to clipboard
Reads count
bytes from this InputStream and returns the result.
Link copied to clipboard
expect fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = DEFAULT__ByteString_size): ByteString
Returns a new ByteString containing a copy of byteCount
bytes of this ByteArray starting at offset
.
Returns a ByteString containing a copy of this ByteBuffer.