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

Function opCat

protocol/txvm/strings.go:9–16  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

7var ErrSliceRange = errorf("bad slice range")
8
9func opCat(vm *VM) {
10 b := vm.popBytes()
11 a := vm.popBytes()
12 c := make(Bytes, 0, len(a)+len(b))
13 c = append(append(c, a...), b...)
14 vm.chargeCreate(c)
15 vm.push(c)
16}
17
18func opSlice(vm *VM) {
19 end := int64(vm.popInt())

Callers

nothing calls this directly

Calls 3

popBytesMethod · 0.80
chargeCreateMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected