/external/zstd/tests/ |
D | zstreamtest.c | 280 ZSTD_outBuffer outBuff; in basicUnitTests() local 306 outBuff.dst = (char*)(compressedBuffer); in basicUnitTests() 307 outBuff.size = compressedBufferSize; in basicUnitTests() 308 outBuff.pos = 0; in basicUnitTests() 312 CHECK_Z( ZSTD_compressStream(zc, &outBuff, &inBuff) ); in basicUnitTests() 314 { size_t const r = ZSTD_endStream(zc, &outBuff); in basicUnitTests() 316 DISPLAYLEVEL(3, "OK (%u bytes)\n", (unsigned)outBuff.pos); in basicUnitTests() 328 outBuff.dst = (char*)(compressedBuffer)+cSize; in basicUnitTests() 330 outBuff.size = compressedBufferSize - cSize; in basicUnitTests() 331 outBuff.pos = 0; in basicUnitTests() [all …]
|
D | legacy.c | 80 char* const outBuff = malloc(outBuffSize); in testStreamingAPI() local 86 if (outBuff == NULL) { in testStreamingAPI() 92 free(outBuff); in testStreamingAPI() 97 ZSTD_outBuffer output = {outBuff, outBuffSize, 0}; in testStreamingAPI() 117 if (memcmp(outBuff, EXPECTED + outputPos, output.pos) != 0) { in testStreamingAPI() 128 free(outBuff); in testStreamingAPI()
|
/external/zstd/lib/deprecated/ |
D | zbuff_compress.c | 118 ZSTD_outBuffer outBuff; in ZBUFF_compressContinue() local 120 outBuff.dst = dst; in ZBUFF_compressContinue() 121 outBuff.pos = 0; in ZBUFF_compressContinue() 122 outBuff.size = *dstCapacityPtr; in ZBUFF_compressContinue() 126 result = ZSTD_compressStream(zbc, &outBuff, &inBuff); in ZBUFF_compressContinue() 127 *dstCapacityPtr = outBuff.pos; in ZBUFF_compressContinue() 139 ZSTD_outBuffer outBuff; in ZBUFF_compressFlush() local 140 outBuff.dst = dst; in ZBUFF_compressFlush() 141 outBuff.pos = 0; in ZBUFF_compressFlush() 142 outBuff.size = *dstCapacityPtr; in ZBUFF_compressFlush() [all …]
|
D | zbuff_decompress.c | 55 ZSTD_outBuffer outBuff; in ZBUFF_decompressContinue() local 58 outBuff.dst = dst; in ZBUFF_decompressContinue() 59 outBuff.pos = 0; in ZBUFF_decompressContinue() 60 outBuff.size = *dstCapacityPtr; in ZBUFF_decompressContinue() 64 result = ZSTD_decompressStream(zbd, &outBuff, &inBuff); in ZBUFF_decompressContinue() 65 *dstCapacityPtr = outBuff.pos; in ZBUFF_decompressContinue()
|
/external/zstd/examples/ |
D | streaming_memory_usage.c | 90 ZSTD_outBuffer outBuff = { compressedData, sizeof(compressedData), 0 }; in main() local 91 CHECK_ZSTD( ZSTD_compressStream(cctx, &outBuff, &inBuff) ); in main() 92 size_t const remaining = ZSTD_endStream(cctx, &outBuff); in main() 95 compressedSize = outBuff.pos; in main() 109 ZSTD_outBuffer outBuff = { decompressedData, sizeof(decompressedData), 0 }; in main() local 110 size_t const remaining = ZSTD_decompressStream(dctx, &outBuff, &inBuff); in main() 113 CHECK(outBuff.pos == sizeof(dataToCompress), "Bad decompression!"); in main()
|
/external/oboe/samples/iolib/src/main/cpp/player/ |
D | OneShotSampleSource.cpp | 25 void OneShotSampleSource::mixAudio(float* outBuff, int numChannels, int32_t numFrames) { in mixAudio() argument 39 outBuff[frameIndex] += data[mCurFrameIndex++] * mGain; in mixAudio() 45 outBuff[dstSampleIndex++] += data[mCurFrameIndex] * mLeftGain; in mixAudio() 46 outBuff[dstSampleIndex++] += data[mCurFrameIndex++] * mRightGain; in mixAudio()
|
D | DataSource.h | 31 virtual void mixAudio(float* outBuff, int numChannels, int numFrames) = 0;
|
D | OneShotSampleSource.h | 33 virtual void mixAudio(float* outBuff, int numChannels, int32_t numFrames);
|
/external/libese/ready_se/google/keymint/KM300/Applet/AndroidSEProviderLib/src/com/android/javacard/seprovider/ |
D | KMRsaOAEPEncoding.java | 109 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) in doFinal() argument 111 short len = cipher.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in doFinal() 126 if (len != 256 || outBuff[0] != 0) { in doFinal() 130 outBuff, (short) (outOffset + 1), outBuff, (short) 0, (short) (len - 1)); in doFinal() 131 return rsaOAEPDecode(outBuff, (short) 0, (short) (len - 1)); in doFinal() 136 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) in update() argument 138 return cipher.update(inBuff, inOffset, inLength, outBuff, outOffset); in update()
|
D | KMSEProvider.java | 723 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset); in messageDigest256() argument
|
D | KMAndroidSEProvider.java | 1444 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) { in messageDigest256() argument 1449 len = mDigest.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in messageDigest256()
|
/external/libese/ready_se/google/keymint/KM200/Applet/AndroidSEProviderLib/src/com/android/javacard/seprovider/ |
D | KMRsaOAEPEncoding.java | 109 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) in doFinal() argument 111 short len = cipher.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in doFinal() 126 if (len != 256 || outBuff[0] != 0) { in doFinal() 130 outBuff, (short) (outOffset + 1), outBuff, (short) 0, (short) (len - 1)); in doFinal() 131 return rsaOAEPDecode(outBuff, (short) 0, (short) (len - 1)); in doFinal() 136 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) in update() argument 138 return cipher.update(inBuff, inOffset, inLength, outBuff, outOffset); in update()
|
D | KMSEProvider.java | 725 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset); in messageDigest256() argument
|
D | KMAndroidSEProvider.java | 1450 byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset) { in messageDigest256() argument 1455 len = mDigest.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in messageDigest256()
|
/external/lz4/examples/ |
D | frameCompress.c | 61 void* outBuff, size_t outCapacity, in compress_file_internal() argument 73 { size_t const headerSize = LZ4F_compressBegin(ctx, outBuff, outCapacity, &kPrefs); in compress_file_internal() 81 safe_fwrite(outBuff, 1, headerSize, f_out); in compress_file_internal() 106 outBuff, outCapacity, in compress_file_internal() 114 outBuff, outCapacity, in compress_file_internal() 126 safe_fwrite(outBuff, 1, compressedSize, f_out); in compress_file_internal() 132 outBuff, outCapacity, in compress_file_internal() 140 safe_fwrite(outBuff, 1, compressedSize, f_out); in compress_file_internal()
|
/external/zstd/programs/ |
D | fileio.c | 1403 ZSTD_outBuffer outBuff = { ress.dstBuffer, ress.dstBufferSize, 0 }; in FIO_compressZstdFrame() local 1405 CHECK_V(stillToFlush, ZSTD_compressStream2(ress.cctx, &outBuff, &inBuff, directive)); in FIO_compressZstdFrame() 1414 … (unsigned)directive, (unsigned)inBuff.pos, (unsigned)inBuff.size, (unsigned)outBuff.pos); in FIO_compressZstdFrame() 1415 if (outBuff.pos) { in FIO_compressZstdFrame() 1416 size_t const sizeCheck = fwrite(ress.dstBuffer, 1, outBuff.pos, dstFile); in FIO_compressZstdFrame() 1417 if (sizeCheck != outBuff.pos) in FIO_compressZstdFrame() 1420 compressedfilesize += outBuff.pos; in FIO_compressZstdFrame() 2247 ZSTD_outBuffer outBuff= { ress->dstBuffer, ress->dstBufferSize, 0 }; in FIO_decompressZstdFrame() local 2248 size_t const readSizeHint = ZSTD_decompressStream(ress->dctx, &outBuff, &inBuff); in FIO_decompressZstdFrame() 2259 … storedSkips = FIO_fwriteSparse(ress->dstFile, ress->dstBuffer, outBuff.pos, prefs, storedSkips); in FIO_decompressZstdFrame() [all …]
|
/external/zstd/lib/decompress/ |
D | zstd_decompress_internal.h | 174 char* outBuff; member
|
D | zstd_decompress.c | 1906 zds->outBuff + zds->outStart, dstSize, src, srcSize); in ZSTD_decompressContinueStream() 2100 zds->outBuff = zds->inBuff + zds->inBuffSize; in ZSTD_decompressStream() 2152 …size_t const flushedSize = ZSTD_limitCopy(op, (size_t)(oend-op), zds->outBuff + zds->outStart, toF… in ZSTD_decompressStream()
|
/external/zstd/contrib/seekable_format/ |
D | zstdseek_decompress.c | 167 BYTE outBuff[SEEKABLE_BUFF_SIZE]; /* so we can efficiently decompress the member 469 …outTmp = (ZSTD_outBuffer){zs->outBuff, MIN(SEEKABLE_BUFF_SIZE, offset - zs->decompressedOffset), 0… in ZSTD_seekable_decompress()
|
/external/zstd/lib/legacy/ |
D | zstd_v04.c | 3359 char* outBuff; member 3388 free(zbc->outBuff); in ZBUFF_freeDCtx() 3485 free(zbc->outBuff); in ZBUFF_decompressContinue() 3487 zbc->outBuff = (char*)malloc(neededOutSize); in ZBUFF_decompressContinue() 3488 if (zbc->outBuff == NULL) return ERROR(memory_allocation); in ZBUFF_decompressContinue() 3515 zbc->outBuff + zbc->outStart, zbc->outBuffSize - zbc->outStart, in ZBUFF_decompressContinue() 3540 zbc->outBuff + zbc->outStart, zbc->outBuffSize - zbc->outStart, in ZBUFF_decompressContinue() 3554 … size_t flushedSize = ZBUFF_limitCopy(op, oend-op, zbc->outBuff + zbc->outStart, toFlushSize); in ZBUFF_decompressContinue()
|
D | zstd_v05.c | 3839 char* outBuff; member 3864 free(zbc->outBuff); in ZBUFFv05_freeDCtx() 3950 free(zbc->outBuff); in ZBUFFv05_decompressContinue() 3952 zbc->outBuff = (char*)malloc(neededOutSize); in ZBUFFv05_decompressContinue() 3953 if (zbc->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv05_decompressContinue() 3976 zbc->outBuff + zbc->outStart, zbc->outBuffSize - zbc->outStart, in ZBUFFv05_decompressContinue() 4001 zbc->outBuff + zbc->outStart, zbc->outBuffSize - zbc->outStart, in ZBUFFv05_decompressContinue() 4015 … size_t flushedSize = ZBUFFv05_limitCopy(op, oend-op, zbc->outBuff + zbc->outStart, toFlushSize); in ZBUFFv05_decompressContinue()
|
D | zstd_v06.c | 3955 char* outBuff; member 3980 free(zbd->outBuff); in ZBUFFv06_freeDCtx() 4068 free(zbd->outBuff); in ZBUFFv06_decompressContinue() 4070 zbd->outBuff = (char*)malloc(neededOutSize); in ZBUFFv06_decompressContinue() 4071 if (zbd->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv06_decompressContinue() 4084 zbd->outBuff + zbd->outStart, zbd->outBuffSize - zbd->outStart, in ZBUFFv06_decompressContinue() 4109 zbd->outBuff + zbd->outStart, zbd->outBuffSize - zbd->outStart, in ZBUFFv06_decompressContinue() 4122 …size_t const flushedSize = ZBUFFv06_limitCopy(op, oend-op, zbd->outBuff + zbd->outStart, toFlushSi… in ZBUFFv06_decompressContinue()
|
D | zstd_v07.c | 4320 char* outBuff; member 4362 if (zbd->outBuff) zbd->customMem.customFree(zbd->customMem.opaque, zbd->outBuff); in ZBUFFv07_freeDCtx() 4452 zbd->customMem.customFree(zbd->customMem.opaque, zbd->outBuff); in ZBUFFv07_decompressContinue() 4454 … zbd->outBuff = (char*)zbd->customMem.customAlloc(zbd->customMem.opaque, neededOutSize); in ZBUFFv07_decompressContinue() 4455 if (zbd->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv07_decompressContinue() 4470 … zbd->outBuff + zbd->outStart, (isSkipFrame ? 0 : zbd->outBuffSize - zbd->outStart), in ZBUFFv07_decompressContinue() 4496 zbd->outBuff + zbd->outStart, zbd->outBuffSize - zbd->outStart, in ZBUFFv07_decompressContinue() 4510 …size_t const flushedSize = ZBUFFv07_limitCopy(op, oend-op, zbd->outBuff + zbd->outStart, toFlushSi… in ZBUFFv07_decompressContinue()
|
/external/zstd/lib/compress/ |
D | zstd_compress_internal.h | 404 char* outBuff; member
|
D | zstd_compress.c | 1947 zc->outBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffOutSize); in ZSTD_resetCCtx_internal() 5348 assert(zcs->outBuff != NULL); in ZSTD_compressStream_generic() 5409 cDst = zcs->outBuff, oSize = zcs->outBuffSize; in ZSTD_compressStream_generic() 5461 zcs->outBuff + zcs->outBuffFlushedSize, toFlush); in ZSTD_compressStream_generic()
|