udwBufio

package
v0.0.0-...-f254aa5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

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) Read

func (crb *BufioReader) Read(buf []byte) (nr int, err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL