internal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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