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

Function EncodeAddress

smartcontract/service/native/utils/serialization.go:32–34  ·  view source on GitHub ↗
(sink *common.ZeroCopySink, addr common.Address)

Source from the content-addressed store, hash-verified

30)
31
32func EncodeAddress(sink *common.ZeroCopySink, addr common.Address) (size uint64) {
33 return sink.WriteVarBytes(addr[:])
34}
35
36func EncodeVarUint(sink *common.ZeroCopySink, value uint64) (size uint64) {
37 return sink.WriteVarBytes(common.BigIntToNeoBytes(big.NewInt(int64(value))))

Callers 7

SerializationMethod · 0.92
getRoleStorageItemFunction · 0.92
getBalanceOfFunction · 0.92
SerializationMethod · 0.92
getOngBalanceFunction · 0.92
SerializationMethod · 0.92
SerializationMethod · 0.92

Calls 1

WriteVarBytesMethod · 0.80

Tested by 1

getBalanceOfFunction · 0.74