UNPKG

@cartbc/codecs-strings

Version:

Codecs for strings of different sizes and encodings

9 lines (8 loc) 499 B
import { Codec, Decoder, Encoder } from '@cartbc/codecs-core'; /** Encodes UTF-8 strings using the native `TextEncoder` API. */ export declare const getUtf8Encoder: () => Encoder<string>; /** Decodes UTF-8 strings using the native `TextDecoder` API. */ export declare const getUtf8Decoder: () => Decoder<string>; /** Encodes and decodes UTF-8 strings using the native `TextEncoder` and `TextDecoder` API. */ export declare const getUtf8Codec: () => Codec<string>; //# sourceMappingURL=utf8.d.ts.map