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

x/ayonli_jsext/uint8array/index.ts

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

Functions for dealing with byte arrays (Uint8Array).

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.

Converts the given data to a byte array.

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.