jump

package
v0.6.118 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package jump contain mini pack function that quick jumping through a binary message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(msgBuf []byte, off int) int

Name jumps the name that should start msgBuf[off].

func Question

func Question(msgBuf []byte, off int) int

Question jumps the question section that should start at msgBuf[off].

func RR

func RR(msgBuf []byte, off int) int

RR jumps the RR that starts at msgBuf[off].

func To

func To(i int, msgBuf []byte) int

To jumps to the start of the i-th RR in the message, that starts at msgBuf[0]. This counts from 0 which returns the RR *after* a possible question section. When we jump over the entire message, 0 is returned. The supported number of "RR"s in the question section is zero or one. The zero check is done by checking the Qdcount *in the buffer* as there is no other way of doing so.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL