Skip to main content
Module

x/structurae/index.ts>StringView.encode

Data structures for high-performance JavaScript applications.
Latest
method StringView.encode
import { StringView } from "https://deno.land/x/structurae@4.0.1/index.ts";

Parameters

value: string

the value to encode

view: DataView

the view to encode into

optional
start = [UNSUPPORTED]

the view offset to start

optional
length: number

the byte length to encode

Returns

number

the amount of written bytes