Documentation ¶
Overview ¶
Package cbuffered 实现读缓冲的net.conn接口
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn conn with bufio.Reader
func (*Conn) Buffered ¶
Buffered returns the number of bytes that can be read from the current buffer.
func (*Conn) Peek ¶
Peek returns the next n bytes without advancing the reader. The bytes stop being valid at the next read call. If Peek returns fewer than n bytes, it also returns an error explaining why the read is short. The error is ErrBufferFull if n is larger than b's buffer size.
func (*Conn) UnreadByte ¶
UnreadByte unreads the last byte. Only the most recently read byte can be unread.
Click to show internal directories.
Click to hide internal directories.