pulse

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgStart              = 0
	MsgMagicStart         = 1
	MsgMagicEnd           = 5
	HeaderLength          = 9
	DefaultStartDelimiter = 0x41
	DefaultEndDelimiter   = 0x42
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PulseParser

type PulseParser struct {
	StartDelimiter byte
	EndDelimiter   byte
	Magic          uint32
}

func NewPulseParser

func NewPulseParser() *PulseParser

func (*PulseParser) Marshal

func (parser *PulseParser) Marshal(spites *implantpb.Spites, magic uint32) ([]byte, error)

func (*PulseParser) Parse

func (parser *PulseParser) Parse(buf []byte) (*implantpb.Spites, error)

func (*PulseParser) ReadHeader

func (parser *PulseParser) ReadHeader(conn io.ReadWriteCloser) (uint32, uint32, error)

Jump to

Keyboard shortcuts

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