Skip to main content
Module

x/aleph/std.ts>bytes

The Full-stack Framework in Deno.
Very Popular
Go to Latest
namespace bytes
import { bytes } from "https://deno.land/x/aleph@v0.2.28/std.ts";

Functions

Concatenate two binary arrays and return new one.

Check source array contains 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 arrays are equal to each other.

Find first index of binary pattern from a. If not found, then return -1

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

Check whether binary array starts with prefix.

Check whether binary array ends with suffix.

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