Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
f
concat(buf: Uint8Array[]): Uint8Array
Concatenate an array of Uint8Arrays.
f
copy(): number
src: Uint8Array,
dst: Uint8Array,
off?
Copy bytes from the src array to the dst array. Returns the number of
bytes copied.
f
endsWith(): boolean
source: Uint8Array,
suffix: Uint8Array
Returns true if the suffix array appears at the end of the source array, false otherwise.
f
equals(): boolean
a: Uint8Array,
b: Uint8Array
Check whether binary arrays are equal to each other.
f
includesNeedle(): boolean
source: Uint8Array,
needle: Uint8Array,
start?
Returns true if the source array contains the needle array, false otherwise.
f
indexOfNeedle(): number
source: Uint8Array,
needle: Uint8Array,
start?
Returns the index of the first occurrence of the needle array in the source array, or -1 if it is not present.
f
lastIndexOfNeedle(): number
source: Uint8Array,
needle: Uint8Array,
start?: number
Returns the index of the last occurrence of the needle array in the source array, or -1 if it is not present.
f
repeat(): Uint8Array
source: Uint8Array,
count: number
Returns a new Uint8Array composed of count repetitions of the source
array.
f
startsWith(): boolean
source: Uint8Array,
prefix: Uint8Array
Returns true if the prefix array appears at the start of the source array, false otherwise.