Documentation ¶
Index ¶
- type BufioReader
- func (crb *BufioReader) AddPos(pos int)
- func (crb *BufioReader) PeekByte() (b byte, errMsg string)
- func (crb *BufioReader) Read(buf []byte) (nr int, err error)
- func (crb *BufioReader) ReadBySize(need int) (b []byte, errMsg string)
- func (crb *BufioReader) ReadByteErrMsg() (b byte, errMsg string)
- func (crb *BufioReader) ReadUvarint() (x uint64, errMsg string)
- type BufioWriter
- func (w *BufioWriter) AddPos(offset int)
- func (w *BufioWriter) Flush() (errMsg string)
- func (w *BufioWriter) GetPos() int
- func (w *BufioWriter) SetPos(pos int)
- func (w *BufioWriter) SoftFlush() (errMsg string)
- func (w *BufioWriter) WriteByte_(buf byte)
- func (w *BufioWriter) WriteLittleEndFloat32(x float32)
- func (w *BufioWriter) WriteLittleEndFloat64(x float64)
- func (w *BufioWriter) WriteUvarint(x uint64)
- func (w *BufioWriter) Write_(buf []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufioReader ¶
type BufioReader struct {
// contains filtered or unexported fields
}
func NewBufioReader ¶
func NewBufioReader(r io.Reader, maxNeedSize int) *BufioReader
func (*BufioReader) AddPos ¶
func (crb *BufioReader) AddPos(pos int)
func (*BufioReader) PeekByte ¶
func (crb *BufioReader) PeekByte() (b byte, errMsg string)
func (*BufioReader) ReadBySize ¶
func (crb *BufioReader) ReadBySize(need int) (b []byte, errMsg string)
func (*BufioReader) ReadByteErrMsg ¶
func (crb *BufioReader) ReadByteErrMsg() (b byte, errMsg string)
func (*BufioReader) ReadUvarint ¶
func (crb *BufioReader) ReadUvarint() (x uint64, errMsg string)
type BufioWriter ¶
type BufioWriter struct {
// contains filtered or unexported fields
}
func NewBufioWriter ¶
func NewBufioWriter(w io.Writer, softMaxBufSize int) *BufioWriter
func (*BufioWriter) AddPos ¶
func (w *BufioWriter) AddPos(offset int)
func (*BufioWriter) Flush ¶
func (w *BufioWriter) Flush() (errMsg string)
func (*BufioWriter) GetPos ¶
func (w *BufioWriter) GetPos() int
func (*BufioWriter) SetPos ¶
func (w *BufioWriter) SetPos(pos int)
func (*BufioWriter) SoftFlush ¶
func (w *BufioWriter) SoftFlush() (errMsg string)
func (*BufioWriter) WriteByte_ ¶
func (w *BufioWriter) WriteByte_(buf byte)
func (*BufioWriter) WriteLittleEndFloat32 ¶
func (w *BufioWriter) WriteLittleEndFloat32(x float32)
func (*BufioWriter) WriteLittleEndFloat64 ¶
func (w *BufioWriter) WriteLittleEndFloat64(x float64)
func (*BufioWriter) WriteUvarint ¶
func (w *BufioWriter) WriteUvarint(x uint64)
func (*BufioWriter) Write_ ¶
func (w *BufioWriter) Write_(buf []byte)
Click to show internal directories.
Click to hide internal directories.