Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/enum/lib/enum.js>default#set

Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.
Latest
method default.prototype.set
import { default } from "https://deno.land/x/enum@v3.0.4/lib/enum.js";

Sets the Enum "value" onto the give buffer at the specified offset. Part of the ref "Type interface".

Parameters

buffer

The Buffer instance to write to.

offset

The offset in the buffer to write to. Default 0.

value

The EnumItem to write.