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

x/smoldot/instance/buffer.js>writeUInt8

Alternative client for Substrate-based chains.
Latest
function writeUInt8
import { writeUInt8 } from "https://deno.land/x/smoldot@light-js-deno-v0.7.9/instance/buffer.js";

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
offset
value