Versions in this module Expand all Collapse all v0 v0.7.2 Dec 13, 2021 Changes in this version + func CopyStruct(input interface{}, output interface{}) error + type BufferPool struct + func NewBufferPool() *BufferPool + func (p *BufferPool) Get() *bytes.Buffer + func (p *BufferPool) Put(buffer *bytes.Buffer) + func (p *BufferPool) PutByteSlice(buffer []byte) + type CompressorEntry struct + DictionaryPath string + Namespace string + type Encoder struct + func NewEncoder(entries []*CompressorEntry, pool *BufferPool, compress bool) (*Encoder, error) + func (e *Encoder) Decode(namespace string, input []byte, object interface{}, reclaimInput bool) error + func (e *Encoder) DecodeAccountCoin(b []byte, accountCoin *types.AccountCoin, reclaimInput bool) error + func (e *Encoder) DecodeAccountCurrency(b []byte, accountCurrency *types.AccountCurrency, reclaimInput bool) error + func (e *Encoder) DecodeRaw(namespace string, input []byte) ([]byte, error) + func (e *Encoder) Encode(namespace string, object interface{}) ([]byte, error) + func (e *Encoder) EncodeAccountCoin(accountCoin *types.AccountCoin) ([]byte, error) + func (e *Encoder) EncodeAccountCurrency(accountCurrency *types.AccountCurrency) ([]byte, error) + func (e *Encoder) EncodeRaw(namespace string, input []byte) ([]byte, error)