Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable encodingOps
import { encodingOps } from "https://deno.land/std@0.172.0/node/internal/buffer.mjs";

type

{ ascii: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; base64: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; base64url: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; hex: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; latin1: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; ucs2: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; utf8: { byteLength; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; utf16le: { byteLength: (string) => unknown; encoding: string; encodingVal; indexOf: (
buf,
val,
byteOffset,
dir,
) => unknown; slice: (
buf,
start,
end,
) => unknown; write: (
buf,
string,
offset,
len,
) => unknown; }; }