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

Function writePushdata

protocol/txvm/txvmutil/builder.go:140–144  ·  view source on GitHub ↗
(buf *bytes.Buffer, data []byte)

Source from the content-addressed store, hash-verified

138}
139
140func writePushdata(buf *bytes.Buffer, data []byte) {
141 op := uint64(len(data) + int(op.MinPushdata))
142 writeVarint(buf, op)
143 buf.Write(data[:])
144}
145
146func writePushint64(buf *bytes.Buffer, num int64) {
147 switch {

Callers 2

PushdataBytesMethod · 0.70
writePushint64Function · 0.70

Calls 2

writeVarintFunction · 0.70
WriteMethod · 0.45

Tested by

no test coverage detected