mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65350 Reviewed-By: James M Snell <jasnell@gmail.com>
9 lines
362 B
TypeScript
9 lines
362 B
TypeScript
export interface EncodingBinding {
|
|
encodeInto(source: string, dest: Uint8Array): void;
|
|
encodeIntoResults: Uint32Array;
|
|
encodeUtf8String(str: string): Uint8Array;
|
|
decodeUTF8(buffer: ArrayBufferView | ArrayBuffer | SharedArrayBuffer, ignoreBOM?: boolean, hasFatal?: boolean): string;
|
|
toASCII(input: string): string;
|
|
toUnicode(input: string): string;
|
|
}
|