private static Bytes getByte(final Bytes seq, final Bytes offset) {
    Bytes trimmedOffset = offset.trimLeadingZeros();
    if (trimmedOffset.size() > 1) {
      return Bytes.EMPTY;
    }
    final int index = trimmedOffset.toInt();

    int size = seq.size();
    int pos = index - 32 + size;
    if (pos >= size || pos < 0) {
      return Bytes.EMPTY;
    } else {
      final byte b = seq.get(pos);
      return Bytes.of(b);
    }
  }
Instantiates a new Byte operation.

@param gasCalculator the gas calculator
evm/src/main/java/org/hyperledger/besu/evm/operation/ByteOperation.java