Skip to main content
Module

x/web_bson/deps.ts

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
import * as webBson from "https://deno.land/x/web_bson@v0.2.5/deps.ts";

Provides helper functions to manipulate Uint8Array byte slices that are not included on the Uint8Array prototype.

Namespaces

encode and decode for base64 encoding.

Port of the Go encoding/hex library.

Functions

Decodes a given RFC4648 base64 encoded string

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Concatenate the given arrays into a new Uint8Array.

Copy bytes from the src array to the dst array. Returns the number of bytes copied.

Returns true if the suffix array appears at the end of the source array, false otherwise.

Check whether binary arrays are equal to each other.

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Encodes src into src.length * 2 bytes.

Returns true if the source array contains the needle array, false otherwise.

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

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

Returns a new Uint8Array composed of count repetitions of the source array.

Returns true if the prefix array appears at the start of the source array, false otherwise.