MCPcopy 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
72func (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
80func (i Int) String() string {
81 return fmt.Sprintf("%d", i)

Callers

nothing calls this directly

Calls 2

IntTypeAlias · 0.85
encodeMethod · 0.65

Tested by

no test coverage detected