Skip to main content
Module

x/smoldot2/internals/buffer.d.ts>writeUInt8

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
Latest
function writeUInt8
import { writeUInt8 } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.30/internals/buffer.d.ts";

Sets the value of a given byte in the buffer.

This function is equivalent to buffer[offset] = value, except that an exception is thrown if offset is out of range.

Parameters

buffer: Uint8Array
offset: number
value: number