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