cell

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 79

Documentation

Index

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 BeginCell

func BeginCell() *Builder

func (*Builder) EndCell

func (b *Builder) EndCell() *Cell

func (*Builder) MustStoreBigCoins

func (b *Builder) MustStoreBigCoins(value *big.Int) *Builder

func (*Builder) MustStoreBigInt

func (b *Builder) MustStoreBigInt(value *big.Int, sz int) *Builder

func (*Builder) MustStoreCoins

func (b *Builder) MustStoreCoins(value uint64) *Builder

func (*Builder) MustStoreRef

func (b *Builder) MustStoreRef(ref *Cell) *Builder

func (*Builder) MustStoreSlice

func (b *Builder) MustStoreSlice(bytes []byte, sz int) *Builder

func (*Builder) MustStoreUInt

func (b *Builder) MustStoreUInt(value uint64, sz int) *Builder

func (*Builder) StoreBigCoins

func (b *Builder) StoreBigCoins(value *big.Int) error

func (*Builder) StoreBigInt

func (b *Builder) StoreBigInt(value *big.Int, sz int) error

func (*Builder) StoreCoins

func (b *Builder) StoreCoins(value uint64) error

func (*Builder) StoreRef

func (b *Builder) StoreRef(ref *Cell) error

func (*Builder) StoreSlice

func (b *Builder) StoreSlice(bytes []byte, sz int) error

func (*Builder) StoreUInt

func (b *Builder) StoreUInt(value uint64, sz int) error

type Cell

type Cell struct {
	// contains filtered or unexported fields
}

func FromBOC

func FromBOC(data []byte) (*Cell, error)

func (*Cell) BeginParse

func (c *Cell) BeginParse() *LoadCell

func (*Cell) Dump added in v0.1.2

func (c *Cell) Dump() string

func (*Cell) ToBOC

func (c *Cell) ToBOC() []byte

func (*Cell) ToBOCWithFlags

func (c *Cell) ToBOCWithFlags(withCRC bool) []byte

type LoadCell

type LoadCell struct {
	// contains filtered or unexported fields
}

func (*LoadCell) LoadAddr added in v0.1.8

func (c *LoadCell) LoadAddr() (*address.Address, error)

func (*LoadCell) LoadBigCoins

func (c *LoadCell) LoadBigCoins() (*big.Int, error)

func (*LoadCell) LoadBigInt

func (c *LoadCell) LoadBigInt(sz int) (*big.Int, error)

func (*LoadCell) LoadCoins

func (c *LoadCell) LoadCoins() (uint64, error)

func (*LoadCell) LoadRef

func (c *LoadCell) LoadRef() (*LoadCell, error)

func (*LoadCell) LoadSlice

func (c *LoadCell) LoadSlice(sz int) ([]byte, error)

func (*LoadCell) LoadUInt

func (c *LoadCell) LoadUInt(sz int) (uint64, error)

func (*LoadCell) RestBits

func (c *LoadCell) RestBits() (int, []byte, error)

func (*LoadCell) ToCell added in v0.1.2

func (c *LoadCell) ToCell() (*Cell, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL