section

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Section

type Section [10]byte

Section represents the header describing the type, length and the version of each section.

func New

func New(typ Type, ver kcapver.Version, l, size uint32) Section

New buils a new section block with the specified type, version, optional length and size.

func Read

func Read(b []byte) Section

Read reads the section from the byte slice.

func (Section) Len

func (s Section) Len() uint32

Len returns the length of the section.

func (Section) Size

func (s Section) Size() uint32

Size returns the size of the section.

func (Section) String

func (s Section) String() string

String returns the string representation of the kcap section.

func (Section) Type

func (s Section) Type() Type

Type returns the type of this section.

func (Section) Version

func (s Section) Version() kcapver.Version

Version returns the version of the captured section block.

type Type

type Type uint8

Type describes the type of a section

const (
	// Process is the process header type
	Process Type = iota + 1
	// Handle is the handle header type
	Handle
	// Kevt is the kernel event header type
	Kevt
	// PE is the Portable Executable header type
	PE
)

func (Type) String

func (s Type) String() string

String returns the type name.

Jump to

Keyboard shortcuts

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