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

Method PushdataByte

protocol/txvm/txvmutil/builder.go:38–43  ·  view source on GitHub ↗

PushdataByte writes instructions to b, pushing byt onto the stack.

(byt byte)

Source from the content-addressed store, hash-verified

36// PushdataByte writes instructions to b,
37// pushing byt onto the stack.
38func (b *Builder) PushdataByte(byt byte) *Builder {
39 op := uint64(1 + int(op.MinPushdata))
40 writeVarint(&b.buf, op)
41 b.buf.WriteByte(byt)
42 return b
43}
44
45// PushdataInt64 writes instructions to b pushing v
46// onto the stack.

Callers 3

TestBuilderFunction · 0.45
PushdataByteMethod · 0.45
SnapshotFunction · 0.45

Calls 1

writeVarintFunction · 0.70

Tested by 1

TestBuilderFunction · 0.36