Documentation ¶
Index ¶
- Variables
- type PacketBuffer
- func (p2 *PacketBuffer) AllocRemainder() []byte
- func (p2 *PacketBuffer) AllocRemainderTo(b *bytebufferpool.ByteBuffer)
- func (p2 *PacketBuffer) Limit(limit int)
- func (p2 *PacketBuffer) Mark() int
- func (p2 *PacketBuffer) Read(p []byte) (n int, err error)
- func (p2 *PacketBuffer) Remaining() int
- func (p2 *PacketBuffer) RemainingSlice() []byte
- func (p2 *PacketBuffer) Reset(mark int)
- func (p2 *PacketBuffer) ShrinkRemaining()
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) 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()
Click to show internal directories.
Click to hide internal directories.