Encoder

expect class Encoder

This class implements an encoder for encoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.

Instances of Encoder class are safe for use by multiple concurrent threads.

Unless otherwise noted, passing a null argument to a method of this class will cause a NullPointerException to be thrown.

See also

actual class Encoder

This class implements an encoder for encoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.

Instances of Encoder class are safe for use by multiple concurrent threads.

Unless otherwise noted, passing a null argument to a method of this class will cause a NullPointerException to be thrown.

See also

for the corresponding decoder.

Constructors

Link copied to clipboard
expect constructor()
actual constructor()

Types

Link copied to clipboard
expect object Companion
actual object Companion

Functions

Link copied to clipboard
expect fun encode(src: ByteArray): ByteArray

Encodes all bytes from the specified byte array into a newly-allocated byte array using the Base64 encoding scheme.The returned byte array is of the length of the resulting bytes.

actual fun encode(src: ByteArray): ByteArray

Encodes all bytes from the specified byte array into a newly-allocated byte array using the Base64 encoding scheme.The returned byte array is of the length of the resulting bytes.