...
Package io
Overview ▹
Index ▹
type ReadCloser ¶
type ReadCloser interface { Reader io.Closer }
func NewDelimitedReader ¶
func NewDelimitedReader(r io.Reader, maxSize int) ReadCloser
func NewFullReader ¶
func NewFullReader(r io.Reader, maxSize int) ReadCloser
func NewUint32DelimitedReader ¶
func NewUint32DelimitedReader(r io.Reader, byteOrder binary.ByteOrder, maxSize int) ReadCloser
type Reader ¶
type Reader interface { ReadMsg(msg proto.Message) error }
type WriteCloser ¶
type WriteCloser interface { Writer io.Closer }
func NewDelimitedWriter ¶
func NewDelimitedWriter(w io.Writer) WriteCloser
func NewFullWriter ¶
func NewFullWriter(w io.Writer) WriteCloser
func NewSizeUint32DelimitedWriter ¶
func NewSizeUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder, size int) WriteCloser
func NewUint32DelimitedWriter ¶
func NewUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder) WriteCloser
type Writer ¶
type Writer interface { WriteMsg(proto.Message) error }