Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var INITIAL_ALLOC = uint(1024 * 1024)
INITIAL_ALLOC is the initial allocation.
Functions ¶
func Pack ¶
Pack is used to pack a interface given to it. Note that to ensure compatibility in codebases where you have both erlpack and json, json.RawMessage is treated the same as erlpack.RawData.
func Unpack ¶
Unpack is used to unpack a value to a pointer. Note that to ensure compatibility in codebases where you have both erlpack and json, json.RawMessage is treated the same as erlpack.RawData.
func UnpackReader ¶
UnpackReader is used to unpack a value to a pointer from a reader. Note that to ensure compatibility in codebases where you have both erlpack and json, json.RawMessage is treated the same as erlpack.RawData.
Types ¶
type RawData ¶
type RawData []byte
RawData is used to define data which was within an Erlpack array but has not been parsed yet. This is different to UncastedResult since it has not been processed yet.
type UncastedResult ¶
type UncastedResult struct {
// contains filtered or unexported fields
}
UncastedResult is used to define a result which has not been casted yet. You can call Cast on this to cast the item after the initial unpacking.
func (*UncastedResult) Cast ¶
func (u *UncastedResult) Cast(Ptr interface{}) error
Cast is used to cast the result to a pointer.