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

Method flush

protocol/txvm/asm/asm.go:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (a *assembler) flush() {
120 if a.buf.Len() == 0 {
121 return
122 }
123 b := make([]byte, a.buf.Len())
124 copy(b[:], a.buf.Bytes())
125 a.items = append(a.items, b)
126 a.buf.Reset()
127}
128
129func (a *assembler) assembleItems() error {
130 for a.next() != a.stoptok {

Callers 1

assembleItemsMethod · 0.95

Calls 3

ResetMethod · 0.65
LenMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected