MCPcopy Create free account
hub / github.com/chain/txvm / opEncode

Function opEncode

protocol/txvm/data.go:97–102  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

95}
96
97func opEncode(vm *VM) {
98 item := vm.popData()
99 s := Bytes(Encode(item))
100 vm.chargeCreate(s)
101 vm.push(s)
102}
103
104func opInt(vm *VM) {
105 a := vm.popBytes()

Callers

nothing calls this directly

Calls 5

BytesTypeAlias · 0.85
EncodeFunction · 0.85
popDataMethod · 0.80
chargeCreateMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected