@Override
  public Operation.OperationResult executeFixedCostOperation(
      final MessageFrame frame, final EVM evm) {
    final Bytes startWord = frame.popStackItem().trimLeadingZeros();

    // If the start index doesn't fit in an int, it comes after anything in data, and so the
    // returned
    // word should be zero.
    if (startWord.size() > 4) {
      frame.pushStackItem(Bytes.EMPTY);
      return successResponse;
    }

    final int offset = startWord.toInt();
    if (offset < 0) {
      frame.pushStackItem(Bytes.EMPTY);
      return successResponse;
    }
    final Bytes data = frame.getInputData();
    final MutableBytes32 res = MutableBytes32.create();
    if (offset < data.size()) {
      final Bytes toCopy = data.slice(offset, Math.min(Bytes32.SIZE, data.size() - offset));
      toCopy.copyTo(res, 0);
      frame.pushStackItem(res.copy());
    } else {
      frame.pushStackItem(Bytes.EMPTY);
    }

    return successResponse;
  }
Instantiates a new Call data load operation.

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