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

x/packet/mod.ts>NS#encode

An abstract-encoding compliant module for encoding / decoding DNS packets, for Deno.
Go to Latest
method NS.prototype.encode
import { NS } from "https://deno.land/x/packet@2023.11.10/mod.ts";

Parameters

data
optional
buf
optional
offset