Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/bytes/mod.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.131.0/bytes/mod.ts";

Functions

Concatenate multiple binary arrays and return new one.

Determines whether the source array includes the pattern array.

Copy bytes from one Uint8Array to another. Bytes from src which don't fit into dst will not be copied.

Check whether binary array ends with suffix.

Check whether binary arrays are equal to each other.

Determines whether the source array includes the pattern array.

Returns the index of the first occurrence of the pattern array in the source array, or -1 if it is not present.

Find last index of binary pattern from source. If not found, then return -1.

Repeat bytes. returns a new byte slice consisting of count copies of b.

Check whether binary array starts with prefix.