chgttyyr/moon_dns/src/bytes_io does not have a README file
pub(all) struct ByteReader { bytes : Bytes cursor : Int} derive(@moonbitlang/core/debug.DebugDebug)
fn ByteReader::from_offset(bytes : Bytes, offset : Int) -> Result[ByteReader, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::has_remaining(self : ByteReader, n : Int) -> Bool
fn ByteReader::new(bytes : Bytes) -> ByteReader
fn ByteReader::peek_byte(self : ByteReader) -> Result[Byte, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::position(self : ByteReader) -> Int
fn ByteReader::read_byte(self : ByteReader) -> Result[Byte, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::read_bytes(self : ByteReader, len : Int) -> Result[Bytes, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::read_uint16(self : ByteReader) -> Result[UInt16, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::read_uint32(self : ByteReader) -> Result[UInt, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::remaining(self : ByteReader) -> Int
fn ByteReader::set_position(self : ByteReader, pos : Int) -> Result[Unit, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::skip(self : ByteReader, n : Int) -> Result[Unit, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::sub_slice(self : ByteReader, start : Int, len : Int) -> Result[Bytes, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteReader::total_length(self : ByteReader) -> Int
pub(all) struct ByteWriter { buf : Array[Byte]} derive(@moonbitlang/core/debug.DebugDebug)
fn ByteWriter::clear(self : ByteWriter) -> Unit
fn ByteWriter::length(self : ByteWriter) -> Int
fn ByteWriter::new() -> ByteWriter
fn ByteWriter::patch_uint16(self : ByteWriter, pos : Int, val : UInt16) -> Result[Unit, @chgttyyr/moon_dns/src/types.DnsErrorDnsError]
fn ByteWriter::to_bytes(self : ByteWriter) -> Bytes
fn ByteWriter::write_byte(self : ByteWriter, b : Byte) -> Unit
fn ByteWriter::write_bytes(self : ByteWriter, bytes : Bytes) -> Unit
fn ByteWriter::write_fixed_bytes(self : ByteWriter, bytes : FixedArray[Byte]) -> Unit
fn ByteWriter::write_uint16(self : ByteWriter, val : UInt16) -> Unit
fn ByteWriter::write_uint32(self : ByteWriter, val : UInt) -> Unit
Install
Pure MoonBit authoritative DNS server (RFC 1035/6891) with robust pointer compression security
Dependencies
Powered by MoonBit
© 2026 mooncakes.io