static int writeListHeader(final int payloadSize, final MutableBytes dest, final int destOffset) {
    if (isShortList(payloadSize)) {
      dest.set(destOffset, (byte) (0xc0 + payloadSize));
      return destOffset + 1;
    }

    return writeLongMetadata(0xf7, payloadSize, dest, destOffset);
  }
Writes the encoded header of a list provided its encoded payload size to the provided
destination (which must be big enough).
ethereum/rlp/src/main/java/org/hyperledger/besu/ethereum/rlp/RLPEncodingHelpers.java