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

Function EncodeInt128

vm/crossvm_codec/codec.go:229–232  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, val common.I128)

Source from the content-addressed store, hash-verified

227}
228
229func EncodeInt128(sink *common.ZeroCopySink, val common.I128) {
230 sink.WriteByte(IntType)
231 sink.WriteBytes(val[:])
232}
233
234func EncodeBigInt(sink *common.ZeroCopySink, intval *big.Int) error {
235 val, err := common.I128FromBigInt(intval)

Callers 4

BuildResultFromNeoFunction · 0.92
EncodeValueFunction · 0.85
EncodeBigIntFunction · 0.85
EncodeListFunction · 0.85

Calls 2

WriteByteMethod · 0.80
WriteBytesMethod · 0.80

Tested by

no test coverage detected