buffer

package
v0.0.0-...-0659192 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBufferOverflow = io.ErrShortBuffer
)

Functions

This section is empty.

Types

type PacketBuffer

type PacketBuffer struct {
	// contains filtered or unexported fields
}

func NewPacketBuffer

func NewPacketBuffer(delegate []byte) *PacketBuffer

func (*PacketBuffer) AllocRemainder

func (p2 *PacketBuffer) AllocRemainder() []byte

func (*PacketBuffer) AllocRemainderTo

func (p2 *PacketBuffer) AllocRemainderTo(b *bytebufferpool.ByteBuffer)

func (*PacketBuffer) Limit

func (p2 *PacketBuffer) Limit(limit int)

func (*PacketBuffer) Mark

func (p2 *PacketBuffer) Mark() int

func (*PacketBuffer) Read

func (p2 *PacketBuffer) Read(p []byte) (n int, err error)

func (*PacketBuffer) Remaining

func (p2 *PacketBuffer) Remaining() int

func (*PacketBuffer) RemainingSlice

func (p2 *PacketBuffer) RemainingSlice() []byte

func (*PacketBuffer) Reset

func (p2 *PacketBuffer) Reset(mark int)

func (*PacketBuffer) ShrinkRemaining

func (p2 *PacketBuffer) ShrinkRemaining()

Jump to

Keyboard shortcuts

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