Documentation ¶
Index ¶
- Variables
- func Marshal(obj interface{}) ([]byte, error)
- func Unmarshal(buf []byte, candidatePointer interface{}) (interface{}, error)
- func UnmarshalCandidates(buf []byte, candidatePointers ...interface{}) (interface{}, error)
- type API
- type Allocator
- type BaseCodec
- type Config
- type DefaultAllocator
- type Iterator
- func (iter *Iterator) Allocator(allocator Allocator)
- func (iter *Iterator) Buffer() []byte
- func (iter *Iterator) CopyThenUnmarshal(candidatePointer interface{}) interface{}
- func (iter *Iterator) CopyThenUnmarshalCandidates(candidatePointers ...interface{}) interface{}
- func (iter *Iterator) NextSize() uint32
- func (iter *Iterator) ObjectSeq(objectSeq ObjectSeq)
- func (iter *Iterator) ReportError(operation string, err error)
- func (iter *Iterator) Reset(buf []byte)
- func (iter *Iterator) Skip() []byte
- func (iter *Iterator) Unmarshal(candidatePointer interface{}) interface{}
- func (iter *Iterator) UnmarshalCandidates(candidatePointers ...interface{}) interface{}
- type NoopCodec
- type ObjectSeq
- type RootDecoder
- type RootEncoder
- type Stream
- type ValDecoder
- type ValEncoder
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{}.Froze()
View Source
var ReadonlyConfig = Config{ReadonlyDecode: true}.Froze()
Functions ¶
func UnmarshalCandidates ¶
Types ¶
type BaseCodec ¶
type BaseCodec struct {
// contains filtered or unexported fields
}
func (*BaseCodec) HasPointer ¶
type DefaultAllocator ¶
type DefaultAllocator struct { }
type Iterator ¶
type Iterator struct { Error error // contains filtered or unexported fields }
func NewIterator ¶
func (*Iterator) CopyThenUnmarshal ¶
func (iter *Iterator) CopyThenUnmarshal(candidatePointer interface{}) interface{}
func (*Iterator) CopyThenUnmarshalCandidates ¶
func (iter *Iterator) CopyThenUnmarshalCandidates(candidatePointers ...interface{}) interface{}
func (*Iterator) ReportError ¶
func (*Iterator) Unmarshal ¶
func (iter *Iterator) Unmarshal(candidatePointer interface{}) interface{}
func (*Iterator) UnmarshalCandidates ¶
func (iter *Iterator) UnmarshalCandidates(candidatePointers ...interface{}) interface{}
type RootDecoder ¶
type RootEncoder ¶
type Stream ¶
type Stream struct { Error error // contains filtered or unexported fields }
func (*Stream) ReportError ¶
type ValDecoder ¶
Click to show internal directories.
Click to hide internal directories.