Skip to main content
Module

x/bytebuf/bytebuf.ts>ByteBuf.from

A byte buffer for encoding and decoding binary data in JavaScript.
Latest
method ByteBuf.from
import { ByteBuf } from "https://deno.land/x/bytebuf@1.2.0/bytebuf.ts";

Creates a byte buffer.

Parameters

source: BufferSource

The data source.

optional
byteOffset: number

The byte offset.

optional
byteLength: number

The byte length.

Returns

A byte buffer.