Documentation ¶
Index ¶
- func IntToByteBigEndian(i int) []byte
- func ReadBytes(reader io.Reader, size int) ([]byte, error)
- func ReadInt(reader io.Reader) (int, error)
- type ByteBuf
- func (b *ByteBuf) Flush()
- func (b *ByteBuf) ReadBuffer() *bufio.Reader
- func (b *ByteBuf) ReadBytea() byte
- func (b *ByteBuf) ReadBytes(size int) []byte
- func (b *ByteBuf) ReadInt() int
- func (b *ByteBuf) ReadLine() string
- func (b *ByteBuf) WriteBuffer() *bufio.Writer
- func (b *ByteBuf) WriteBytea(data byte)
- func (b *ByteBuf) WriteBytes(data []byte)
- func (b *ByteBuf) WriteInt(data int)
- func (b *ByteBuf) WriteString(data string)
- type LengthBased
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntToByteBigEndian ¶
Types ¶
type ByteBuf ¶
func NewReadByteBuf ¶
func NewReadWriteByteBuf ¶
func NewWriteByteBuf ¶
func (*ByteBuf) ReadBuffer ¶
func (*ByteBuf) WriteBuffer ¶
func (*ByteBuf) WriteBytea ¶
func (*ByteBuf) WriteBytes ¶
func (*ByteBuf) WriteString ¶
type LengthBased ¶
type LengthBased struct {
// contains filtered or unexported fields
}
LengthBased 长度解码器, 重试从缓冲区解析数据帧程度
func NewLengthBased ¶
func NewLengthBased(lengthFieldOffset int, lengthFieldLength int, lengthAdjustment int, initialBytesToStrip int) *LengthBased
Click to show internal directories.
Click to hide internal directories.