Deprecated
(will be removed in 0.205.0) Use a plain array of Uint8Arrays instead.
import { BytesList } from "https://deno.land/std@0.202.0/bytes/bytes_list.ts";
An abstraction of multiple Uint8Arrays
Methods
deprecated
add(value: Uint8Array,
start?,
end?,
Push bytes with given offset infos
deprecated
concat(): Uint8ArrayConcatenate chunks into single Uint8Array copied.
deprecated
get(i: number): numberGet indexed byte from chunks
deprecated
getChunkIndex(pos: number): numberFind chunk index in which pos
locates by binary-search
returns -1 if out of range
deprecated
iterator(start?): IterableIterator<number>Iterator of bytes from given position
deprecated
shift(n: number)Drop head n
bytes.
deprecated
size()Total size of bytes
deprecated
slice(start: number, end?: number): Uint8ArrayReturns subset of bytes copied