MCPcopy Create free account
hub / github.com/DNAProject/DNA / EncodeBigInt

Function EncodeBigInt

vm/crossvm_codec/codec.go:234–241  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, intval *big.Int)

Source from the content-addressed store, hash-verified

232}
233
234func EncodeBigInt(sink *common.ZeroCopySink, intval *big.Int) error {
235 val, err := common.I128FromBigInt(intval)
236 if err != nil {
237 return err
238 }
239 EncodeInt128(sink, val)
240 return nil
241}
242
243func EncodeList(sink *common.ZeroCopySink, list []interface{}) error {
244 sink.WriteByte(ListType)

Callers 3

BuildResultFromNeoFunction · 0.92
EncodeValueFunction · 0.85
EncodeListFunction · 0.85

Calls 2

I128FromBigIntFunction · 0.92
EncodeInt128Function · 0.85

Tested by

no test coverage detected