bytes

package
v0.0.0-...-68530c3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes struct {
	Data []byte
}

Bytes wraps a byte slice []byte

func NewBytes

func NewBytes(sz uint64) *Bytes

func (*Bytes) Append

func (bs *Bytes) Append(b byte)

func (*Bytes) AppendBytes

func (bs *Bytes) AppendBytes(other *Bytes)

func (*Bytes) CopySegment

func (bs *Bytes) CopySegment(dst uint64, other *Bytes, src uint64, count uint64)

func (*Bytes) Get

func (bs *Bytes) Get(i uint64) byte

func (*Bytes) Len

func (bs *Bytes) Len() uint64

func (*Bytes) Print

func (bs *Bytes) Print()

func (*Bytes) Set

func (bs *Bytes) Set(i uint64, b byte)

func (*Bytes) Split

func (bs *Bytes) Split(off uint64) *Bytes

func (*Bytes) Subslice

func (bs *Bytes) Subslice(start uint64, end uint64)

Jump to

Keyboard shortcuts

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