opcodeSize pushes the size of the top item of the data stack onto the data stack. Stack transformation: [... x1] -> [... x1 len(x1)]
(op *opcode, data []byte, vm *Engine)
| 1381 | // |
| 1382 | // Stack transformation: [... x1] -> [... x1 len(x1)] |
| 1383 | func opcodeSize(op *opcode, data []byte, vm *Engine) error { |
| 1384 | so, err := vm.dstack.PeekByteArray(0) |
| 1385 | if err != nil { |
| 1386 | return err |
| 1387 | } |
| 1388 | |
| 1389 | vm.dstack.PushInt(scriptNum(len(so))) |
| 1390 | return nil |
| 1391 | } |
| 1392 | |
| 1393 | // opcodeEqual removes the top 2 items of the data stack, compares them as raw |
| 1394 | // bytes, and pushes the result, encoded as a boolean, back to the stack. |
nothing calls this directly
no test coverage detected
searching dependent graphs…