Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedConn ¶
type SharedConn struct { // contains filtered or unexported fields }
func NewSharedConn ¶
func NewSharedConn(conn net.Conn) (*SharedConn, io.Reader)
the bytes you read in io.Reader, will be reserved in SharedConn
func NewSharedConnSize ¶
func (*SharedConn) Read ¶
func (sc *SharedConn) Read(p []byte) (n int, err error)
Not thread safety.
func (*SharedConn) ResetBuf ¶
func (sc *SharedConn) ResetBuf(buffer []byte) (err error)
Click to show internal directories.
Click to hide internal directories.