Package-level declarations

Cross-platform encoding utilities and API.

Types

Link copied to clipboard
typealias Base64 = DefaultBase64

DefaultBase64 is now the default implementation.

Link copied to clipboard

Specifies the expected API interface for an encoding tool, which is capable of encoding data to a given format or expression, as well as decoding from that same format.

Link copied to clipboard

Describes a component of a Codec, or a generic data object that can identify an Encoding. Raw data outputs are also CodecIdentifiable by default.

Link copied to clipboard
Link copied to clipboard
interface EncodedData

Specifies the interface which encoded data value classes comply with; each encoded data class indicates its encoding, and provides a means for decoding to/from strings.

Link copied to clipboard
Link copied to clipboard

Enumerates supported encodings and binds Encoder instances to each.

Link copied to clipboard
typealias Hex = DefaultHex

DefaultHex is now the default implementation.

Functions

Link copied to clipboard

Encode the current ByteArray to a Base64 byte array wrapped using an encoded data record.

Encode the current String to a Base64 byte array, using the cross-platform DefaultBase64 tools.

Link copied to clipboard

Encode the current ByteArray to a Base64 byte array, using the cross-platform DefaultBase64 tools.

Encode the current String to a Base64 byte array, using the cross-platform DefaultBase64 tools.

Link copied to clipboard

Encode the current ByteArray to a Base64 string, using the cross-platform DefaultBase64 tools.

Encode the current String to a Base64 string, using the cross-platform DefaultBase64 tools.

Link copied to clipboard

Encode the current ByteArray to a hex-encoded string, wrapped in a HexData record.

Encode the current String to a hex-encoded string, wrapped in a HexData record.

Link copied to clipboard

Encode the current ByteArray to a hex-encoded byte array, using the cross-platform DefaultHex tools.

Encode the current String to a hex-encoded byte array, using the cross-platform DefaultHex tools.

Link copied to clipboard

Encode the current ByteArray to a hex-encoded string, using the cross-platform DefaultHex tools.

Encode the current String to a hex-encoded string, using the cross-platform DefaultHex tools.