Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶ added in v1.1.5
type Reader interface { GetBytes() []byte GetTailBytes() []byte IsCanGrow() bool GetCapacity() int GetBytesSize() int GetUsedSize() int GetTailSize() int GetEmptySize() int io.Reader Peek() []byte PeekLen(outLen int) []byte TakeOut() (out []byte) TakeOutLen(outLen int) (out []byte, err error) CopyOut(out []byte) int // 读取最大out长度的数据,返回读出数据长度 CopyOutLen(out []byte, outLen int) error // 读取outLen长度的数据,如果数据不足 outLen 返回 error }
Click to show internal directories.
Click to hide internal directories.