bson

package
v0.0.0-...-e098d20 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer() *Buffer

NewBuffer creates a new bson buffer

func WithBuf

func WithBuf(buf []byte) *Buffer

func (*Buffer) AppendBinary

func (b *Buffer) AppendBinary(k string, v []byte)

func (*Buffer) AppendBool

func (b *Buffer) AppendBool(k string, v bool)

func (*Buffer) AppendFinishObject

func (b *Buffer) AppendFinishObject(start int)

func (*Buffer) AppendFloat64

func (b *Buffer) AppendFloat64(k string, v float64)

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(k string, v int)

func (*Buffer) AppendInt32

func (b *Buffer) AppendInt32(k string, v int32)

func (*Buffer) AppendInt64

func (b *Buffer) AppendInt64(k string, v int64)

func (*Buffer) AppendStartArray

func (b *Buffer) AppendStartArray(k string) (start int)

func (*Buffer) AppendStartObject

func (b *Buffer) AppendStartObject(k string) (start int)

func (*Buffer) AppendString

func (b *Buffer) AppendString(k, v string)

func (*Buffer) Finish

func (b *Buffer) Finish()

func (*Buffer) GetBuf

func (b *Buffer) GetBuf() []byte

func (*Buffer) Init

func (b *Buffer) Init()

Jump to

Keyboard shortcuts

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