Byte

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.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 Buffer

type Buffer struct {
	Max int // 可自动扩容的极限大小
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) ReadByte

func (e *Buffer) ReadByte() (byte, error)

func (*Buffer) ReadBytes

func (e *Buffer) ReadBytes(count int) ([]byte, error)

func (*Buffer) ReadableBytes

func (e *Buffer) ReadableBytes() int

func (*Buffer) Reset

func (e *Buffer) Reset()

func (*Buffer) TryRead

func (e *Buffer) TryRead(reader func(data []byte) (int, bool)) (int, bool)

func (*Buffer) WritableBytes

func (e *Buffer) WritableBytes() int

func (*Buffer) WriteBytes

func (e *Buffer) WriteBytes(data []byte) error

Jump to

Keyboard shortcuts

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