section

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 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 builds 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.

Jump to

Keyboard shortcuts

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