/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/ |
D | AsyncInvalidCharsTest.java | 29 private void _testUtf8BOMHandling(int offset, int readSize) throws Exception in _testUtf8BOMHandling() argument 31 _testUTF8BomOk(offset, readSize); in _testUtf8BOMHandling() 32 _testUTF8BomFail(offset, readSize, 1, in _testUtf8BOMHandling() 34 _testUTF8BomFail(offset, readSize, 2, in _testUtf8BOMHandling() 38 private void _testUTF8BomOk(int offset, int readSize) throws Exception in _testUTF8BomOk() argument 48 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, doc, offset); in _testUTF8BomOk() 74 private void _testUTF8BomFail(int offset, int readSize, in _testUTF8BomFail() argument 85 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, doc, offset); in _testUTF8BomFail() 105 private void _testHandlingOfInvalidSpace(int offset, int readSize) throws Exception in _testHandlingOfInvalidSpace() argument 109 AsyncReaderWrapper p = asyncForBytes(JSON_F, readSize, _jsonDoc(doc), offset); in _testHandlingOfInvalidSpace()
|
D | AsyncNonStdParsingTest.java | 46 int offset, int readSize) throws Exception in _testLargeUnquoted() argument 48 AsyncReaderWrapper p = createParser(f, doc, offset, readSize); in _testLargeUnquoted() 78 int offset, int readSize) throws Exception in _testSimpleUnquoted() argument 81 AsyncReaderWrapper p = createParser(f, doc, offset, readSize); in _testSimpleUnquoted() 106 p = createParser(f, "{ 123:true,4:false }", offset, readSize); in _testSimpleUnquoted() 139 int offset, int readSize) throws Exception in _testSingleQuotesDefault() argument 143 AsyncReaderWrapper p = createParser(f, JSON, offset, readSize); in _testSingleQuotesDefault() 155 p = createParser(f, JSON, offset, readSize); in _testSingleQuotesDefault() 189 int offset, int readSize) throws Exception in _testAposQuotingEnabled() argument 196 AsyncReaderWrapper p = createParser(f, JSON, offset, readSize); in _testAposQuotingEnabled() [all …]
|
D | AsyncCharEscapingTest.java | 29 private void _testMissingLinefeedEscaping(byte[] doc, int offset, int readSize) in _testMissingLinefeedEscaping() argument 32 AsyncReaderWrapper r = asyncForBytes(JSON_F, readSize, doc, offset); in _testMissingLinefeedEscaping() 58 private void _testSimpleEscaping(int offset, int readSize) throws Exception in _testSimpleEscaping() argument 62 AsyncReaderWrapper r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping() 71 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping() 79 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping() 87 r = asyncForBytes(JSON_F, readSize, doc, offset); in _testSimpleEscaping()
|
D | AsyncBinaryParseTest.java | 63 private void _testBinaryAsRoot2(JsonFactory f, int offset, int readSize) throws IOException in _testBinaryAsRoot2() argument 74 AsyncReaderWrapper p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsRoot2() 84 p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsRoot2() 91 private void _testBinaryAsArray2(JsonFactory f, int offset, int readSize) throws IOException in _testBinaryAsArray2() argument 105 AsyncReaderWrapper p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsArray2() 119 p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsArray2() 129 private void _testBinaryAsObject2(JsonFactory f, int offset, int readSize) throws IOException in _testBinaryAsObject2() argument 142 AsyncReaderWrapper p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsObject2() 161 p = asyncForBytes(f, readSize, smile, offset); in _testBinaryAsObject2()
|
D | AsyncSimpleNestedTest.java | 35 byte[] data, int offset, int readSize) throws IOException in _testStuffInObject() argument 37 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testStuffInObject() 75 r = asyncForBytes(f, readSize, data, offset); in _testStuffInObject() 98 byte[] data, int offset, int readSize) throws IOException in _testStuffInArray() argument 100 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testStuffInArray() 146 byte[] data, int offset, int readSize) throws IOException in _testStuffInArray2() argument 148 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testStuffInArray2() 199 byte[] data, int offset, int readSize) throws IOException in _testMismatchedArray() argument 201 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testMismatchedArray() 226 byte[] data, int offset, int readSize) throws IOException in _testMismatchedObject() argument [all …]
|
D | AsyncScalarArrayTest.java | 41 byte[] data, int offset, int readSize) throws IOException in _testTokens() argument 43 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testTokens() 92 byte[] data, int offset, int readSize) throws IOException in _testInts() argument 94 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testInts() 145 byte[] data, int offset, int readSize) throws IOException in _testLong() argument 147 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testLong() 192 byte[] data, int offset, int readSize) throws IOException in _testFloats() argument 194 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testFloats() 234 byte[] data, int offset, int readSize) throws IOException in _testDoubles() argument 236 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testDoubles() [all …]
|
D | AsyncStringObjectTest.java | 40 byte[] data, int offset, int readSize) throws IOException in _testBasicFieldsNames() argument 42 _testBasicFieldsNames2(f, data, offset, readSize, true); in _testBasicFieldsNames() 43 _testBasicFieldsNames2(f, data, offset, readSize, false); in _testBasicFieldsNames() 47 byte[] data, int offset, int readSize, boolean verifyContents) throws IOException in _testBasicFieldsNames2() argument 49 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testBasicFieldsNames2() 93 r = asyncForBytes(f, readSize, data, offset); in _testBasicFieldsNames2()
|
D | AsyncUnicodeHandlingTest.java | 48 int length, int readSize) throws IOException in _testUnicodeWithSurrogates() argument 64 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, 0); in _testUnicodeWithSurrogates() 72 r = asyncForBytes(f, readSize, data, 0); in _testUnicodeWithSurrogates() 79 r = asyncForBytes(f, readSize, data, 0); in _testUnicodeWithSurrogates() 89 r = asyncForBytes(f, readSize, data, 0); in _testUnicodeWithSurrogates()
|
D | AsyncRootValuesTest.java | 45 byte[] data, int offset, int readSize) throws IOException in _testTokenRootTokens() argument 47 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testTokenRootTokens() 76 byte[] data, int offset, int readSize) throws IOException in _testTokenRootSequence() argument 78 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testTokenRootSequence() 116 byte[] data, int offset, int readSize) throws IOException in _testMixedRootSequence() argument 118 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testMixedRootSequence()
|
D | AsyncRootNumbersTest.java | 42 byte[] data, int offset, int readSize) throws IOException in _testRootInts() argument 44 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testRootInts() 113 byte[] data, int offset, int readSize) throws IOException in _testRootDoubles() argument 115 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testRootDoubles()
|
D | AsyncFieldNamesTest.java | 101 int offset, int readSize) throws IOException in _testEscapedFieldNames() argument 103 AsyncReaderWrapper r = asyncForBytes(JSON_F, readSize, doc, offset); in _testEscapedFieldNames() 115 int offset, int readSize) throws IOException in _testEscapedAposFieldNames() argument 117 AsyncReaderWrapper r = asyncForBytes(JSON_APOS_F, readSize, doc, offset); in _testEscapedAposFieldNames()
|
D | AsyncSimpleObjectTest.java | 44 byte[] data, int offset, int readSize) throws IOException in _testBooleans() argument 46 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testBooleans() 138 byte[] data, int offset, int readSize) throws IOException in _testNumbers() argument 140 AsyncReaderWrapper r = asyncForBytes(f, readSize, data, offset); in _testNumbers()
|
/external/lz4/examples/ |
D | frameCompress.c | 84 size_t const readSize = fread(inBuff, 1, IN_CHUNK_SIZE, f_in); in compress_file_internal() local 85 if (readSize == 0) break; /* nothing left to read from input file */ in compress_file_internal() 86 count_in += readSize; in compress_file_internal() 90 inBuff, readSize, in compress_file_internal() 187 size_t readSize = firstChunk ? filled : fread(src, 1, srcCapacity, f_in); firstChunk=0; in decompress_file_internal() local 189 const void* const srcEnd = (const char*)srcPtr + readSize; in decompress_file_internal() 190 if (readSize == 0 || ferror(f_in)) { in decompress_file_internal() 230 { size_t const readSize = fread(src, 1, 1, f_in); in decompress_file_internal() local 231 if (readSize != 0 || !feof(f_in)) { in decompress_file_internal() 252 size_t const readSize = fread(src, 1, srcCapacity, f_in); in decompress_file_allocDst() local [all …]
|
/external/zstd/lib/legacy/ |
D | zstd_legacy.h | 356 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream() local 359 … size_t const hintSize = ZBUFFv04_decompressContinue(dctx, dst, &decodedSize, src, &readSize); in ZSTD_decompressLegacyStream() 361 input->pos += readSize; in ZSTD_decompressLegacyStream() 370 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream() local 373 … size_t const hintSize = ZBUFFv05_decompressContinue(dctx, dst, &decodedSize, src, &readSize); in ZSTD_decompressLegacyStream() 375 input->pos += readSize; in ZSTD_decompressLegacyStream() 384 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream() local 387 … size_t const hintSize = ZBUFFv06_decompressContinue(dctx, dst, &decodedSize, src, &readSize); in ZSTD_decompressLegacyStream() 389 input->pos += readSize; in ZSTD_decompressLegacyStream() 398 size_t readSize = input->size - input->pos; in ZSTD_decompressLegacyStream() local [all …]
|
/external/zstd/examples/ |
D | common.h | 128 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 129 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 130 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie() 186 size_t const readSize = fread(buffer, 1, fileSize, inFile); in loadFile_orDie() local 187 if (readSize != (size_t)fileSize) { in loadFile_orDie()
|
/external/lz4/tests/ |
D | checkFrame.c | 136 size_t readSize; in frameCheck() local 143 readSize = fread(ress.srcBuffer, 1, ress.srcBufferSize, srcFile); in frameCheck() 144 if (!readSize) break; /* reached end of file or stream */ in frameCheck() 146 while (pos < readSize) { /* still to read */ in frameCheck() 151 remaining = readSize - pos; in frameCheck() 169 if (nextToLoad > (readSize - pos)) { in frameCheck() 172 remaining = readSize - pos; in frameCheck()
|
/external/zstd/contrib/seekable_format/examples/ |
D | seekable_decompression.c | 52 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 53 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 54 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie()
|
D | seekable_decompression_mem.c | 54 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 55 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 56 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie()
|
D | seekable_compression.c | 38 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 39 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 40 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie()
|
D | parallel_processing.c | 65 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 66 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 67 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie()
|
D | parallel_compression.c | 50 size_t const readSize = fread(buffer, 1, sizeToRead, file); in fread_orDie() local 51 if (readSize == sizeToRead) return readSize; /* good */ in fread_orDie() 52 if (feof(file)) return readSize; /* good, reached end of file */ in fread_orDie()
|
/external/zstd/tests/fuzz/ |
D | regression_driver.c | 49 size_t readSize; in main() local 72 readSize = fread(buffer, 1, fileSize, file); in main() 73 FUZZ_ASSERT_MSG(readSize == fileSize, fileName); in main()
|
/external/lz4/programs/ |
D | lz4io.c | 545 size_t readSize; in LZ4IO_createDict() local 567 readSize = fread(circularBuf + dictEnd, 1, circularBufSize - dictEnd, dictFile); in LZ4IO_createDict() 568 dictEnd = (dictEnd + readSize) % circularBufSize; in LZ4IO_createDict() 569 dictLen += readSize; in LZ4IO_createDict() 570 } while (readSize>0); in LZ4IO_createDict() 661 size_t readSize; in LZ4IO_compressFilename_extRess() local 688 readSize = fread(srcBuffer, (size_t)1, blockSize, srcFile); in LZ4IO_compressFilename_extRess() 690 filesize += readSize; in LZ4IO_compressFilename_extRess() 693 if (readSize < blockSize) { in LZ4IO_compressFilename_extRess() 695 …LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, ress.cdict, &pre… in LZ4IO_compressFilename_extRess() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/snappy/ |
D | FramedSnappyCompressorInputStream.java | 248 uncompressedBytesRemaining = readSize() - 4 /* CRC */; in readNextBlock() 252 final long size = readSize() - (expectChecksum ? 4L : 0L); in readNextBlock() 287 private int readSize() throws IOException { in readSize() method in FramedSnappyCompressorInputStream 292 final int size = readSize(); in skipBlock()
|
/external/mtools/ |
D | buffer.c | 227 size_t readSize; in buf_pwrite() local 231 readSize = This->cylinderSize - in buf_pwrite() 235 (mt_off_t)This->current, readSize); in buf_pwrite() 251 memset(This->buf,0,readSize); in buf_pwrite() 252 This->cur_size = readSize; in buf_pwrite()
|