Documentation ¶
Overview ¶
Package decoder contains decoder of BSON data. Modified version of gopkg.In/mgo.v2/bson decoder original: https://github.com/go-mgo/mgo/blob/v2-unstable/bson/decode.go This modified version contains some added features that could not be externally added to the original version.
Index ¶
- type Decoder
- func (d *Decoder) AssertBefore(position int)
- func (d *Decoder) AssertEnd(end int)
- func (d *Decoder) CurrentByte() byte
- func (d *Decoder) Position() int
- func (d *Decoder) ReadBinary() bson.Binary
- func (d *Decoder) ReadBool() bool
- func (d *Decoder) ReadByte() byte
- func (d *Decoder) ReadBytes(length int32) []byte
- func (d *Decoder) ReadCStr() string
- func (d *Decoder) ReadFloat64() float64
- func (d *Decoder) ReadInt32() int32
- func (d *Decoder) ReadInt64() int64
- func (d *Decoder) ReadLength() (int, int)
- func (d *Decoder) ReadRegEx() bson.RegEx
- func (d *Decoder) ReadStr() string
- func (d *Decoder) Rewind(rewind int)
- func (d *Decoder) Skip(skip int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
Decoder consists of input data and current position.
func (*Decoder) AssertBefore ¶
AssertBefore - assert if current decoder position is before specified.
func (*Decoder) ReadBinary ¶
ReadBinary - read binary data.
func (*Decoder) ReadLength ¶
ReadLength - read length of document.
Click to show internal directories.
Click to hide internal directories.