encodingLength function

int encodingLength(
  1. int i
)

Encoding Length

Implementation

int encodingLength(int i) {
  return i < OPS['OP_PUSHDATA1']!
      ? 1
      : i <= 0xff
          ? 2
          : i <= 0xffff
              ? 3
              : 5;
}