bindec

package module
v0.0.0-...-9b17d71 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

Decoder provides data decoding from RowBinary format

func New

func New(src []byte) *Decoder

New ResponseReader constructor

func (*Decoder) Bool

func (rr *Decoder) Bool() (value bool, ok bool)

Bool reads boolan value

func (*Decoder) Byte

func (rr *Decoder) Byte() (value byte, ok bool)

Byte reads byte value

func (*Decoder) Bytes

func (rr *Decoder) Bytes(n int) (value []byte, ok bool)

Bytes reads n bytes from the source

func (*Decoder) Empty

func (rr *Decoder) Empty() bool

Empty checks if the underlying buffer is empty

func (*Decoder) Float32

func (rr *Decoder) Float32() (value float32, ok bool)

Float32 reads float32 value

func (*Decoder) Float64

func (rr *Decoder) Float64() (value float64, ok bool)

Float64 reads float64 value

func (*Decoder) Int16

func (rr *Decoder) Int16() (value int16, ok bool)

Int16 reads int16 value

func (*Decoder) Int32

func (rr *Decoder) Int32() (value int32, ok bool)

Int32 reads int32 value

func (*Decoder) Int64

func (rr *Decoder) Int64() (value int64, ok bool)

Int64 reads int64 value

func (*Decoder) SetSource

func (rr *Decoder) SetSource(src []byte)

SetSource sets the source to the given data.

func (*Decoder) Uint16

func (rr *Decoder) Uint16() (value uint16, ok bool)

Uint16 reads uint16 value

func (*Decoder) Uint32

func (rr *Decoder) Uint32() (value uint32, ok bool)

Uint32 reads uint32 value

func (*Decoder) Uint64

func (rr *Decoder) Uint64() (value uint64, ok bool)

Uint64 reads uint64 value

Jump to

Keyboard shortcuts

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