private void addField(AdvDataType type,
                                 byte[] value) throws IllegalArgumentException {
        ByteArrayOutputStream outputStream = advertisementPacket;
        if (requireLegacyDataLength && advertisementPacket.size() + 2 + value.length > LEGACY_MAX_DATA_LENGTH) {
            if (scanResponsePacket.size() + 2 + value.length > LEGACY_MAX_DATA_LENGTH) {
                throw new IllegalArgumentException("Could not fit scan response inside legacy data packets");
            } else {
                outputStream = scanResponsePacket;
            }
        }
        outputStream.write(value.length + 1);
        outputStream.write(type.value);
        outputStream.write(value, 0, value.length);
    }
Check whether the given parcelUuid can be converted to 32 bit bluetooth uuid.

@param parcelUuid
@return true if the parcelUuid can be converted to 32 bit uuid, false otherwise.

@hide
mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/internal/ScanRecordDataConstructor.java