package
0.0.0-20171012210704-a879d8035f3c
Repository: https://github.com/getlantern/sqlparser.git
Documentation: pkg.go.dev

# Functions

DecodeMap decodes a []interface{} from buf.
DecodeBinary decodes a []byte from buf.
DecodeBool decodes a bool from buf.
DecodeFloat64 decodes a float64 from buf.
DecodeInt decodes a int64 from buf.
DecodeInt32 decodes a int32 from buf.
DecodeInt64 decodes a int64 from buf.
DecodeInterface decodes the next object into an interface.
DecodeMap decodes a map[string]interface{} from buf.
DecodeString decodes a string from buf.
DecodeMap decodes a []string from buf.
DecodeBinary decodes a time.Time from buf.
DecodeUint decodes a uint64 from buf.
DecodeUint32 decodes a uint32 from buf.
DecodeUint64 decodes a uint64 from buf.
EncodeBinary encodes a []byte as binary.
EncodeBool encodes a bool.
EncodeField encodes val using the supplied key as embedded tag.
EncodeFloat64 encodes a float64.
EncodeInt encodes an int.
EncodeInt32 encodes an int32.
EncodeInt64 encodes an int64.
EncodeInterface bson encodes an interface{}.
EncodeOptionalPrefix encodes the key as prefix if it's not empty.
EncodePrefix encodes key as prefix for the next object or value.
EncodeSimple marshals simple objects that cannot be encoded as a top level bson document.
EncodeString encodes a string.
EncodeStringArray bson encodes a []string.
EncodeTime encodes a time.Time.
EncodeUint encodes an uint.
EncodeUint32 encodes an uint32.
EncodeUint64 encodes an uint64.
No description provided by the author
Marshal marshals val into encoded.
MarshalToBuffer marshals val into buf.
MarshalToStream marshals val into writer.
No description provided by the author
NewLenWriter returns a LenWriter that reserves the bytes buf so they can store the length later.
Next returns the next n bytes from buf.
NextByte returns the next byte from buf.
ReadCString reads the the bson document tag.
Skip will skip the next field we don't want to read.
SkipIndex must be used to skip indexes in arrays.
Unmarshal unmarshals b into val.
UnmarshalFromBuffer unmarshals from buf into val.
UnmarshalFromStream unmarshals from reader into val.
VerifyObject verifies kind to make sure it's either a top level document (EOO) or an Object.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
unsupported.
unsupported.
No description provided by the author
DefaultBufferSize is the default allocation size for ChunkedWriter.
No description provided by the author
No description provided by the author
No description provided by the author
MAGICTAG is the tag used to embed simple types inside a bson document.
unsupported.
unsupported.
No description provided by the author
No description provided by the author
No description provided by the author
unsupported.
deprecated.
unsupported.
No description provided by the author
unsupported.
unsupported.
nonstandard extension.
deprecated.
Words size in bytes.
Words size in bytes.

# Variables

Pack is the BSON binary packing protocol.

# Structs

No description provided by the author
LenWriter records the current write position on the buffer and can later be used to record the number of bytes written in conformance to BSON spec.

# Interfaces

Marshaler is the interface that needs to be satisfied by types that want to implement a custom marshaler.
Unmarshaler is the interface that needs to be satisfied by types that want to perform custom unmarshaling.