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

x/ayonli_jsext/esm/bytes.js

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/bytes.js";

Classes

A byte array is a Uint8Array that can be coerced to a string with utf8 encoding.

Functions

Breaks the byte array into smaller chunks according to the given length.

Like Buffer.compare but for native Uint8Array.

Like Buffer.concat but for native Uint8Array.

Copies bytes from src array to dest and returns the number of bytes copied.

Checks if the byte array ends with the given suffix.

Checks if the two byte arrays are equal to each other.

Checks if the byte array contains another array as a slice of its contents.

Breaks the byte array into smaller chunks according to the given delimiter.

Checks if the byte array starts with the given prefix.

Converts the byte array (or Uint8Array) to a string.