Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ encode
Method
encode
protocol/txvm/item.go:72–78 ·
view source on GitHub ↗
(w *bytes.Buffer)
Source
from the content-addressed store, hash-verified
70
}
71
72
func
(t Tuple) encode(w *bytes.Buffer) {
73
for
_, item :=
range
t {
74
item.encode(w)
75
}
76
Int(len(t)).encode(w)
77
w.WriteByte(op.Tuple)
78
}
79
80
func
(i Int) String() string {
81
return
fmt.Sprintf(
"%d"
, i)
Callers
nothing calls this directly
Calls
2
Int
TypeAlias · 0.85
encode
Method · 0.65
Tested by
no test coverage detected