public static byte[] getNullableSizePrefixedArray(final ByteBuffer buffer) {
        final int size = buffer.getInt();
        return getNullableArray(buffer, size);
    }
Starting from the current position, read an integer indicating the size of the byte array to read,
then read the array. Consumes the buffer: upon returning, the buffer's position is after the array
that is returned.
@param buffer The buffer to read a size-prefixed array from
@return The array
clients/src/main/java/org/apache/kafka/common/utils/Utils.java