dvi

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FRAME_TYPE_11BIT           = 0x00
	FRAME_TYPE_29BIT           = 0x01
	FILTER_TYPE_PASS           = 0x00
	FILTER_TYPE_FLOW           = 0x01
	FILTER_TYPE_BLOCK          = 0x02
	FILTER_STATUS_OFF          = 0x00
	FILTER_STATUS_ON           = 0x01
	CMD_SEND_TO_NETWORK_NORMAL = 0x10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func New

func New(command byte, data []byte) *Command

func Parse

func Parse(data []byte) (*Command, error)

func (*Command) Bytes

func (d *Command) Bytes() []byte

func (*Command) Checksum

func (c *Command) Checksum() byte

func (*Command) Command

func (c *Command) Command() byte

func (*Command) Data

func (c *Command) Data() []byte

func (*Command) Length

func (c *Command) Length() int

func (*Command) String

func (c *Command) String() string

type CommandParser

type CommandParser struct {
	// contains filtered or unexported fields
}

func NewCommandParser

func NewCommandParser(handler func(cmd *Command)) *CommandParser

func (*CommandParser) AddData

func (cp *CommandParser) AddData(data []byte)

Jump to

Keyboard shortcuts

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