Documentation ¶
Index ¶
- Variables
- type Builder
- func (b *Builder) BitsLeft() int
- func (b *Builder) BitsUsed() int
- func (b *Builder) Copy() *Builder
- func (b *Builder) EndCell() *Cell
- func (b *Builder) MustStoreAddr(addr *address.Address) *Builder
- func (b *Builder) MustStoreBigCoins(value *big.Int) *Builder
- func (b *Builder) MustStoreBigInt(value *big.Int, sz int) *Builder
- func (b *Builder) MustStoreBoolBit(value bool) *Builder
- func (b *Builder) MustStoreBuilder(builder *Builder) *Builder
- func (b *Builder) MustStoreCoins(value uint64) *Builder
- func (b *Builder) MustStoreMaybeRef(ref *Cell) *Builder
- func (b *Builder) MustStoreRef(ref *Cell) *Builder
- func (b *Builder) MustStoreSlice(bytes []byte, sz int) *Builder
- func (b *Builder) MustStoreUInt(value uint64, sz int) *Builder
- func (b *Builder) RefsLeft() int
- func (b *Builder) RefsUsed() int
- func (b *Builder) StoreAddr(addr *address.Address) error
- func (b *Builder) StoreBigCoins(value *big.Int) error
- func (b *Builder) StoreBigInt(value *big.Int, sz int) error
- func (b *Builder) StoreBoolBit(value bool) error
- func (b *Builder) StoreBuilder(builder *Builder) error
- func (b *Builder) StoreCoins(value uint64) error
- func (b *Builder) StoreMaybeRef(ref *Cell) error
- func (b *Builder) StoreRef(ref *Cell) error
- func (b *Builder) StoreSlice(bytes []byte, sz int) error
- func (b *Builder) StoreUInt(value uint64, sz int) error
- type Cell
- func (c *Cell) BeginParse() *LoadCell
- func (c *Cell) BitsSize() int
- func (c *Cell) Dump() string
- func (c *Cell) DumpBits() string
- func (c *Cell) Hash() []byte
- func (c *Cell) RefsNum() int
- func (c *Cell) Sign(key ed25519.PrivateKey) []byte
- func (c *Cell) ToBOC() []byte
- func (c *Cell) ToBOCWithFlags(withCRC bool) []byte
- func (c *Cell) ToBuilder() *Builder
- type Dictionary
- type HashmapKV
- type LoadCell
- func (c *LoadCell) BitsLeft() int
- func (c *LoadCell) Copy() *LoadCell
- func (c *LoadCell) LoadAddr() (*address.Address, error)
- func (c *LoadCell) LoadBigCoins() (*big.Int, error)
- func (c *LoadCell) LoadBigInt(sz int) (*big.Int, error)
- func (c *LoadCell) LoadBoolBit() (bool, error)
- func (c *LoadCell) LoadCoins() (uint64, error)
- func (c *LoadCell) LoadDict(keySz int) (*Dictionary, error)
- func (c *LoadCell) LoadMaybeRef() (*LoadCell, error)
- func (c *LoadCell) LoadRef() (*LoadCell, error)
- func (c *LoadCell) LoadSlice(sz int) ([]byte, error)
- func (c *LoadCell) LoadUInt(sz int) (uint64, error)
- func (c *LoadCell) LoadVarUInt(sz int) (*big.Int, error)
- func (c *LoadCell) MustLoadAddr() *address.Address
- func (c *LoadCell) MustLoadBigCoins() *big.Int
- func (c *LoadCell) MustLoadBigInt(sz int) *big.Int
- func (c *LoadCell) MustLoadBoolBit() bool
- func (c *LoadCell) MustLoadCoins() uint64
- func (c *LoadCell) MustLoadMaybeRef() *LoadCell
- func (c *LoadCell) MustLoadRef() *LoadCell
- func (c *LoadCell) MustLoadSlice(sz int) []byte
- func (c *LoadCell) MustLoadUInt(sz int) uint64
- func (c *LoadCell) MustToCell() *Cell
- func (c *LoadCell) RefsNum() int
- func (c *LoadCell) RestBits() (int, []byte, error)
- func (c *LoadCell) ToCell() (*Cell, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErNotFit1024 = errors.New("cell data size should fit into 1024 bits")
View Source
var ErrNoMoreRefs = errors.New("no more refs exists")
View Source
var ErrNotEnoughData = errors.New("not enough data in reader")
View Source
var ErrSmallSlice = errors.New("too small slice for this size")
View Source
var ErrTooBigSize = errors.New("too big size")
View Source
var ErrTooBigValue = errors.New("too big value")
View Source
var ErrTooMuchRefs = errors.New("too much refs")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) MustStoreBigInt ¶
func (*Builder) MustStoreBoolBit ¶
func (*Builder) MustStoreBuilder ¶
func (*Builder) MustStoreCoins ¶
func (*Builder) MustStoreMaybeRef ¶
func (*Builder) MustStoreRef ¶
func (*Builder) StoreBoolBit ¶
func (*Builder) StoreBuilder ¶
func (*Builder) StoreCoins ¶
func (*Builder) StoreMaybeRef ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func FromBOCMultiRoot ¶
func (*Cell) BeginParse ¶
func (*Cell) ToBOCWithFlags ¶
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
func (*Dictionary) All ¶
func (d *Dictionary) All() []*HashmapKV
func (*Dictionary) Get ¶
func (d *Dictionary) Get(key *Cell) *Cell
type LoadCell ¶
type LoadCell struct {
// contains filtered or unexported fields
}
func (*LoadCell) LoadBoolBit ¶
func (*LoadCell) LoadMaybeRef ¶
func (*LoadCell) MustLoadAddr ¶
func (*LoadCell) MustLoadBigCoins ¶
func (*LoadCell) MustLoadBoolBit ¶
func (*LoadCell) MustLoadCoins ¶
func (*LoadCell) MustLoadMaybeRef ¶
func (*LoadCell) MustLoadRef ¶
func (*LoadCell) MustLoadSlice ¶
func (*LoadCell) MustLoadUInt ¶
func (*LoadCell) MustToCell ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.