/third_party/skia/tools/ |
H A D | skpinfo.cpp | 86 uint32_t chunkSize; in main() local 87 if (!stream.readU32(&chunkSize)) { return kTruncatedFile; } in main() 92 if (curPos+chunkSize > totStreamSize) { in main() 106 SkDebugf("SK_PICT_READER_TAG %d\n", chunkSize); in main() 111 SkDebugf("SK_PICT_FACTORY_TAG %d\n", chunkSize); in main() 116 SkDebugf("SK_PICT_TYPEFACE_TAG %d\n", chunkSize); in main() 119 const int count = SkToInt(chunkSize); in main() 131 chunkSize = 0; in main() 136 SkDebugf("SK_PICT_PICTURE_TAG %d\n", chunkSize); in main() 143 SkDebugf("SK_PICT_BUFFER_SIZE_TAG %d\n", chunkSize); in main() [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_wire/ |
H A D | ChunkedCommandHandler.cpp | 33 size_t chunkSize = std::min(size, mChunkedCommandRemainingSize); in HandleCommands() local 36 const_cast<const char*>(commands), chunkSize); in HandleCommands() 37 mChunkedCommandPutOffset += chunkSize; in HandleCommands() 38 mChunkedCommandRemainingSize -= chunkSize; in HandleCommands() 40 commands += chunkSize; in HandleCommands() 41 size -= chunkSize; in HandleCommands()
|
H A D | ChunkedCommandSerializer.cpp | 26 size_t chunkSize = std::min(remainingSize, mMaxAllocationSize); in SerializeChunkedCommand() local 27 void* dst = mSerializer->GetCmdSpace(chunkSize); in SerializeChunkedCommand() 31 memcpy(dst, allocatedBuffer, chunkSize); in SerializeChunkedCommand() 33 allocatedBuffer += chunkSize; in SerializeChunkedCommand() 34 remainingSize -= chunkSize; in SerializeChunkedCommand()
|
/third_party/node/deps/npm/node_modules/jsonparse/test/ |
H A D | big-token.js | 7 var chunkSize = 1024; 13 t.equal(value.length, chunkSize * chunks, 'token should be size of input json'); 19 var buf = Buffer.alloc ? Buffer.alloc(chunkSize) : new Buffer(chunkSize);
|
/third_party/node/test/parallel/ |
H A D | test-zlib-params.js | 8 const chunkSize = 12 * 1024; 12 const chunk1 = file.slice(0, chunkSize); 13 const chunk2 = file.slice(chunkSize);
|
H A D | test-stream3-pause-then-read.js | 31 const chunkSize = 99; 32 const expectTotalData = totalChunks * chunkSize; 49 const chunk = chunks-- > 0 ? Buffer.alloc(chunkSize, 'x') : null;
|
H A D | test-zlib-flush.js | 8 const chunkSize = 16; 12 const chunk = file.slice(0, chunkSize);
|
H A D | test-http-max-http-headers.js | 47 const chunkSize = 100; 50 for (let i = 0; i < headers.length / chunkSize; i++) { 51 const current = (i + 1) * chunkSize;
|
H A D | test-zlib-convenience-methods.js | 36 chunkSize: 1024,
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_unistd.cpp | 57 size_t chunkSize = state.range(0); in ReadWriteTest() local 62 char* bufRead = new char[chunkSize]; in ReadWriteTest() 65 memset(bufRead, 0, chunkSize * sizeof(char)); in ReadWriteTest() 70 if (read(fd, bufRead, chunkSize) == -1) { in ReadWriteTest() 74 if (write(fd, bufWrite, chunkSize) == -1) { in ReadWriteTest() 79 state.SetBytesProcessed(int64_t(state.iterations()) * int64_t(chunkSize)); in ReadWriteTest() 87 size_t chunkSize = state.range(0); in PreadWriteTest() local 89 char *buf = new char[chunkSize]; in PreadWriteTest() 93 errx(1, "ERROR: op of %zu bytes failed.", chunkSize); in PreadWriteTest() 97 state.SetBytesProcessed(int64_t(state.iterations()) * int64_t(chunkSize)); in PreadWriteTest() [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | ByteString.java | 493 * arrays ("chunks") of the stream data. The chunkSize parameter sets the size of these byte 500 * @param chunkSize The size of the chunks in which to read the stream. 504 public static ByteString readFrom(InputStream streamToDrain, int chunkSize) throws IOException { in readFrom() argument 505 return readFrom(streamToDrain, chunkSize, chunkSize); in readFrom() 515 int chunkSize = minChunkSize; in readFrom() 517 ByteString chunk = readChunk(streamToDrain, chunkSize); in readFrom() 522 chunkSize = Math.min(chunkSize * 2, maxChunkSize); in readFrom() 536 private static ByteString readChunk(InputStream in, final int chunkSize) throw argument [all...] |
H A D | BinaryWriter.java | 73 private final int chunkSize; field in BinaryWriter 87 * Creates a new {@link BinaryWriter} that will allocate heap buffers of {@code chunkSize} as 90 public static BinaryWriter newHeapInstance(BufferAllocator alloc, int chunkSize) { in newHeapInstance() argument 92 ? newUnsafeHeapInstance(alloc, chunkSize) in newHeapInstance() 93 : newSafeHeapInstance(alloc, chunkSize); in newHeapInstance() 106 * chunkSize} as necessary. 108 public static BinaryWriter newDirectInstance(BufferAllocator alloc, int chunkSize) { in newDirectInstance() argument 110 ? newUnsafeDirectInstance(alloc, chunkSize) in newDirectInstance() 111 : newSafeDirectInstance(alloc, chunkSize); in newDirectInstance() 122 static BinaryWriter newSafeHeapInstance(BufferAllocator alloc, int chunkSize) { in newSafeHeapInstance() argument 126 newUnsafeHeapInstance(BufferAllocator alloc, int chunkSize) newUnsafeHeapInstance() argument 133 newSafeDirectInstance(BufferAllocator alloc, int chunkSize) newSafeDirectInstance() argument 137 newUnsafeDirectInstance(BufferAllocator alloc, int chunkSize) newUnsafeDirectInstance() argument 145 BinaryWriter(BufferAllocator alloc, int chunkSize) BinaryWriter() argument 927 SafeHeapWriter(BufferAllocator alloc, int chunkSize) SafeHeapWriter() argument 1456 UnsafeHeapWriter(BufferAllocator alloc, int chunkSize) UnsafeHeapWriter() argument 1991 SafeDirectWriter(BufferAllocator alloc, int chunkSize) SafeDirectWriter() argument 2540 UnsafeDirectWriter(BufferAllocator alloc, int chunkSize) UnsafeDirectWriter() argument [all...] |
/third_party/node/test/pummel/ |
H A D | test-stream-pipe-multi.js | 33 const chunkSize = 250; 34 const data = Buffer.allocUnsafe(chunkSize); 73 for (let i = 0; i < chunkSize; i++) {
|
/third_party/vk-gl-cts/android/package/src/com/drawelements/deqp/testercore/ |
H A D | DeqpInstrumentation.java | 201 final int chunkSize = 4*1024; in testLogData() 207 if (log.length() > chunkSize) in testLogData() 209 message = log.substring(0, chunkSize); in testLogData() 210 log = log.substring(chunkSize); in testLogData()
|
/third_party/node/lib/ |
H A D | zlib.js | 246 let chunkSize = Z_DEFAULT_CHUNK; 261 chunkSize = opts.chunkSize; 262 if (!checkFiniteNumber(chunkSize, 'options.chunkSize')) { 263 chunkSize = Z_DEFAULT_CHUNK; 264 } else if (chunkSize < Z_MIN_CHUNK) { 265 throw new ERR_OUT_OF_RANGE('options.chunkSize', 266 `>= ${Z_MIN_CHUNK}`, chunkSize); 297 this._outBuffer = Buffer.allocUnsafe(chunkSize); [all...] |
/third_party/skia/src/codec/ |
H A D | SkHeifCodec.cpp | 36 uint64_t chunkSize = SkEndian_SwapBE32(ptr[0]); in IsSupported() local 44 if (chunkSize == 1) { in IsSupported() 51 chunkSize = SkEndian_SwapBE64(*chunkSizePtr); in IsSupported() 52 if (chunkSize < 16) { in IsSupported() 57 } else if (chunkSize < 8) { in IsSupported() 62 if (chunkSize > bytesRead) { in IsSupported() 63 chunkSize = bytesRead; in IsSupported() 65 int64_t chunkDataSize = chunkSize - offset; in IsSupported()
|
/third_party/pulseaudio/sonic/ |
H A D | wave.c | 199 int chunkSize = readInt(file); /* 16 or 18 - size of this chunk */ in readHeader() local 200 if(chunkSize != 16 && chunkSize != 18) { in readHeader() 218 if (chunkSize == 18) { /* ffmpeg writes 18, and so has 2 extra bytes here */ in readHeader()
|
/third_party/node/test/fixtures/wpt/encoding/resources/ |
H A D | encode-form-common.js | 12 var chunkSize = 400; variable 47 if (currentChunk.length == chunkSize) {
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | RendererVk.cpp | 791 size_t chunkSize = UnsignedCeilDivide(static_cast<unsigned int>(compressedData.size()), in CompressAndStorePipelineCacheVk() local 798 chunkSize = compressedData.size() - compressedOffset; in CompressAndStorePipelineCacheVk() 802 if (!keyData.resize(kBlobHeaderSize + chunkSize)) in CompressAndStorePipelineCacheVk() 810 chunkSize); in CompressAndStorePipelineCacheVk() 811 compressedOffset += chunkSize; in CompressAndStorePipelineCacheVk() 891 size_t chunkSize = keySize - kBlobHeaderSize; in GetAndDecompressPipelineCacheVk() local 896 ANGLE_VK_CHECK(displayVk, compressedData.resize(chunkSize * numChunks), in GetAndDecompressPipelineCacheVk() 915 chunkSize = keySize - kBlobHeaderSize; in GetAndDecompressPipelineCacheVk() 917 if (checkNumber != numChunks || compressedData.size() < (compressedSize + chunkSize)) in GetAndDecompressPipelineCacheVk() 923 << ", (compressedSize + chunkSize) in GetAndDecompressPipelineCacheVk() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | ccapitst.c | 2288 int32_t chunkSize, in convertExStreaming() 2306 if(chunkSize>CHUNK_SIZE) { in convertExStreaming() 2307 chunkSize=CHUNK_SIZE; in convertExStreaming() 2311 pivotLimit=pivotBuffer+chunkSize; in convertExStreaming() 2315 targetLimit=targetBuffer+chunkSize; in convertExStreaming() 2325 /* for testing, give ucnv_convertEx() at most <chunkSize> input/pivot/output units at a time */ in convertExStreaming() 2326 if(src+chunkSize<=finalSrcLimit) { in convertExStreaming() 2327 srcLimit=src+chunkSize; in convertExStreaming() 2339 testName, chunkSize, target, targetLimit); in convertExStreaming() 2345 if(targetLength+chunkSize< in convertExStreaming() 2285 convertExStreaming(UConverter *srcCnv, UConverter *targetCnv, const char *src, int32_t srcLength, const char *expectTarget, int32_t expectTargetLength, int32_t chunkSize, const char *testName, UErrorCode expectCode) convertExStreaming() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesBufferTests.cpp | 222 const VkDeviceSize chunkSize = std::max(memoryRequirements.alignment, static_cast<VkDeviceSize>(deAlign64(minChunkSize, memoryRequirements.alignment))); in build() local 234 allocInfo.allocationSize = *numChunksIter * chunkSize; in build() 243 memBindIter->resourceChunkNdx * chunkSize, // VkDeviceSize resourceOffset; in build() 244 memBindIter->numChunks * chunkSize, // VkDeviceSize size; in build() 246 alloc.getOffset() + memBindIter->memoryChunkNdx * chunkSize, // VkDeviceSize memoryOffset; in build() 768 << "layout(constant_id = 2) const int chunkSize = 1;\n" in initProgramsDrawWithUBO() 778 << " const int numChunks = dataSize / chunkSize;\n"; in initProgramsDrawWithUBO() 781 src << " const int nonAliasedSize = (numChunks > 1 ? dataSize - chunkSize : dataSize);\n"; in initProgramsDrawWithUBO() 790 src << " if (ndx >= chunkSize && ndx < 2*chunkSize)\ in initProgramsDrawWithUBO() 919 const VkDeviceSize chunkSize = sparseAllocation->resourceSize / sparseAllocation->numResourceChunks; iterate() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesBufferTests.cpp | 222 const VkDeviceSize chunkSize = std::max(memoryRequirements.alignment, static_cast<VkDeviceSize>(deAlign64(minChunkSize, memoryRequirements.alignment))); in build() local 234 allocInfo.allocationSize = *numChunksIter * chunkSize; in build() 243 memBindIter->resourceChunkNdx * chunkSize, // VkDeviceSize resourceOffset; in build() 244 memBindIter->numChunks * chunkSize, // VkDeviceSize size; in build() 246 alloc.getOffset() + memBindIter->memoryChunkNdx * chunkSize, // VkDeviceSize memoryOffset; in build() 768 << "layout(constant_id = 2) const int chunkSize = 1;\n" in initProgramsDrawWithUBO() 778 << " const int numChunks = dataSize / chunkSize;\n"; in initProgramsDrawWithUBO() 781 src << " const int nonAliasedSize = (numChunks > 1 ? dataSize - chunkSize : dataSize);\n"; in initProgramsDrawWithUBO() 790 src << " if (ndx >= chunkSize && ndx < 2*chunkSize)\ in initProgramsDrawWithUBO() 919 const VkDeviceSize chunkSize = sparseAllocation->resourceSize / sparseAllocation->numResourceChunks; iterate() local [all...] |
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
H A D | ByteStringTest.java | 245 // reluctant stream with the given chunkSize parameter. 246 private void assertReadFromReluctantStream(byte[] bytes, int chunkSize) in assertReadFromReluctantStream() argument 248 ByteString b = ByteString.readFrom(new ReluctantStream(bytes), chunkSize); in assertReadFromReluctantStream()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/ |
H A D | vktTransformFeedbackSimpleTests.cpp | 1363 const VkDeviceSize chunkSize = bufBytes / chunkCount; in generateSizesList() local 1364 std::vector<VkDeviceSize> result (chunkCount, chunkSize); in generateSizesList() 1366 DE_ASSERT(chunkSize * chunkCount == bufBytes); in generateSizesList() 1767 const VkDeviceSize chunkSize = bufBytes / chunkCount; 1768 std::vector<VkDeviceSize> result (chunkCount, chunkSize); 1770 DE_ASSERT(chunkSize * chunkCount == bufBytes); 2177 const VkDeviceSize chunkSize = bufBytes / chunkCount; in generateSizesList() local 2178 std::vector<VkDeviceSize> result (chunkCount, chunkSize); in generateSizesList() 2180 DE_ASSERT(chunkSize * chunkCount == bufBytes); in generateSizesList() 2375 const VkDeviceSize chunkSize in generateSizesList() local [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | ByteStringTest.java | 358 // reluctant stream with the given chunkSize parameter. 359 private void assertReadFromReluctantStream(byte[] bytes, int chunkSize) throws IOException { in assertReadFromReluctantStream() argument 360 ByteString b = ByteString.readFrom(new ReluctantStream(bytes), chunkSize); in assertReadFromReluctantStream()
|