Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

    Reader is a reader that reads typed values from an io.Reader.

    func NewReader

    func NewReader(reader io.Reader) *Reader

      NewReader returns a reader that reads typed values from the reader.

      func (*Reader) Err

      func (r *Reader) Err() error

        Err returns any errors hit while reading from the underlying reader.

        func (*Reader) ReadLen16String

        func (r *Reader) ReadLen16String() string

          ReadLen16String reads a uint16-length prefixed string.

          func (*Reader) ReadString

          func (r *Reader) ReadString(n int) string

            ReadString reads a string of length n.

            func (*Reader) ReadUint16

            func (r *Reader) ReadUint16() uint16

              ReadUint16 reads a uint16.

              func (*Reader) Release

              func (r *Reader) Release()

                Release puts the Reader back in the pool.

                Source Files