Documentation ¶
Index ¶
- Constants
- type Array
- func (a *Array) AsTree() *Tree
- func (a *Array) At(idx int) []byte
- func (a *Array) Bytes() []byte
- func (a *Array) ForEach(fun func(i int, data []byte) bool)
- func (a *Array) NumElements() int
- func (a *Array) Parsed() [][]byte
- func (a *Array) ParsedString() string
- func (a *Array) Push(data []byte) int
- func (a *Array) PutAtIdx(idx byte, data []byte)
- func (a *Array) PutAtIdxGrow(idx byte, data []byte)
- func (a *Array) SetData(data []byte)
- func (a *Array) SetEmptyArray()
- type Tree
- func (st *Tree) Bytes() []byte
- func (st *Tree) BytesAtPath(path TreePath) []byte
- func (st *Tree) ForEach(fun func(i byte, data []byte) bool, path TreePath)
- func (st *Tree) ForEachIndex(fun func(i byte) bool, path TreePath)
- func (st *Tree) NumElements(path TreePath) int
- func (st *Tree) Subtree(path TreePath) *Tree
- type TreePath
Constants ¶
View Source
const MaxElementsLazyTree = 256
MaxElementsLazyTree each node of the tree can have maximum 256 elements
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array can be interpreted two ways: - as byte slice - as serialized append-only array of up to 255 byte slices Serialization is optimized by analyzing maximum length of the data element
func ArrayFromBytes ¶
func EmptyArray ¶
func MakeArrayFromData ¶
func (*Array) NumElements ¶
func (*Array) ParsedString ¶
func (*Array) PutAtIdxGrow ¶
PutAtIdxGrow puts data at index, grows array of necessary
func (*Array) SetEmptyArray ¶
func (a *Array) SetEmptyArray()
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree is a read only interface to Array, which is interpreted as a tree
func TreeFromBytes ¶
func TreeFromTrees ¶
func (*Tree) BytesAtPath ¶
BytesAtPath returns serialized for of the element at globalpath
func (*Tree) NumElements ¶
NumElements returns number of elements of the Array at the end of globalpath
Click to show internal directories.
Click to hide internal directories.