Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
97
func
opEncode(vm *VM) {
98
item := vm.popData()
99
s := Bytes(Encode(item))
100
vm.chargeCreate(s)
101
vm.push(s)
102
}
103
104
func
opInt(vm *VM) {
105
a := vm.popBytes()
Callers
nothing calls this directly
Calls
5
Bytes
TypeAlias · 0.85
Encode
Function · 0.85
popData
Method · 0.80
chargeCreate
Method · 0.80
push
Method · 0.45
Tested by
no test coverage detected