Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 25 of 133) sorted by relevance

123456

/third_party/skia/third_party/externals/oboe/src/common/
DFixedBlockReader.cpp49 int32_t bytesRead; in read() local
54 bytesRead = readFromStorage(buffer, bytesLeft); in read()
55 buffer += bytesRead; in read()
56 bytesLeft -= bytesRead; in read()
59 bytesRead = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); in read()
60 if (bytesRead < 0) return bytesRead; in read()
61 buffer += bytesRead; in read()
62 bytesLeft -= bytesRead; in read()
65 bytesRead = mFixedBlockProcessor.onProcessFixedBlock(mStorage.get(), mSize); in read()
66 if (bytesRead < 0) return bytesRead; in read()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
DByteArray.java230 int bytesRead = 0; in copyTo() local
233 while ((bytesRead = this.get(index + srcOffset, b, 0, bufferLength)) > 0) { in copyTo()
234 int bytesWritten = array.put(index + dstOffset, b, 0, bytesRead); in copyTo()
235 index += bytesRead; in copyTo()
236 length -= bytesRead; in copyTo()
263 int bytesRead = 0; in copyTo() local
266 while ((bytesRead = this.get(index + offset, b, 0, bufferLength)) > 0) { in copyTo()
267 os.write(b, 0, bytesRead); in copyTo()
268 index += bytesRead; in copyTo()
283 int bytesRead = 0; in copyFrom() local
[all …]
/third_party/node/test/parallel/
Dtest-fs-readv-promises.js35 let { bytesRead, buffers } = await handle.readv([Buffer.from('')],
37 assert.strictEqual(bytesRead, 0);
40 ({ bytesRead, buffers } = await handle.readv(bufferArr, null));
41 assert.strictEqual(bytesRead, expectedLength);
54 let { bytesRead, buffers } = await handle.readv([Buffer.from('')]);
55 assert.strictEqual(bytesRead, 0);
58 ({ bytesRead, buffers } = await handle.readv(bufferArr));
59 assert.strictEqual(bytesRead, expectedLength);
Dtest-fs-read-stream.js36 let bytesRead = 0;
41 assert.strictEqual(file.bytesRead, 0);
46 assert.strictEqual(file.bytesRead, 0);
62 bytesRead += data.length;
63 assert.strictEqual(file.bytesRead, bytesRead);
76 assert.strictEqual(bytesRead, fileSize);
77 assert.strictEqual(file.bytesRead, fileSize);
82 assert.strictEqual(bytesRead, fileSize);
83 assert.strictEqual(file.bytesRead, fileSize);
Dtest-net-bytes-stats.js27 let bytesRead = 0; variable
38 bytesRead += s.bytesRead;
64 console.log(`Bytes read: ${bytesRead}`);
76 assert.strictEqual(bytesRead, 12);
Dtest-fs-promises-file-handle-read.js36 assert.deepStrictEqual(data.length, readAsyncHandle.bytesRead);
61 assert.strictEqual(readHandle.bytesRead, 0);
84 const { bytesRead } = await read(fileHandle, buf, 0, len, pos, opts);
85 assert.strictEqual(bytesRead, len);
95 const { bytesRead } = await read(fileHandle, buf, 0, len, 0, opts);
96 assert.strictEqual(bytesRead, len);
Dtest-fs-read-promises-optional-params.js16 .then(function({ bytesRead, buffer }) { property
17 assert.strictEqual(bytesRead, expected.byteLength);
23 .then(function({ bytesRead, buffer }) { property
24 assert.strictEqual(bytesRead, expected.byteLength);
Dtest-fs-read-optional-params.js16 fs.read(paramsFilehandle, ...options, common.mustSucceed((bytesRead, buffer) => {
17 assert.strictEqual(bytesRead, expected.byteLength, paramsMsg);
24 fs.read(optionsFilehandle, bufferAsOption, ...options, common.mustSucceed((bytesRead, buffer) => {
25 assert.strictEqual(bytesRead, expected.byteLength, optionsMsg);
Dtest-fs-write-sync-optional-params.js35 let fd, bytesWritten, bytesRead;
46 bytesRead = fs.readSync(fd, buffer, options);
51 assert.ok(bytesWritten >= bytesRead);
54 assert.strictEqual(bytesRead, length);
Dtest-tls-client-destroy-soon.js54 let bytesRead = 0;
59 bytesRead += d.length;
64 assert.strictEqual(big.length, bytesRead);
/third_party/node/deps/npm/node_modules/tar/lib/
Dwrite-entry.js293 this[ONREAD](bytesRead)
301 [ONREAD] (bytesRead) {
302 if (bytesRead <= 0 && this.remain > 0) {
310 if (bytesRead > this.remain) {
324 if (bytesRead === this.remain) {
325 for (let i = bytesRead; i < this.length && bytesRead < this.blockRemain; i++) {
327 bytesRead++
332 const writeBuf = this.offset === 0 && bytesRead === this.buf.length ?
333 this.buf : this.buf.slice(this.offset, this.offset + bytesRead)
396 const bytesRead = fs.readSync(fd, buf, offset, length, pos)
[all …]
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
DBitReader.cs71 int bytesRead = ByteReadSize - readOffset; in ReadMoreInput()
72 System.Array.Copy(br.byteBuffer, readOffset, br.byteBuffer, 0, bytesRead); in ReadMoreInput()
76 while (bytesRead < ByteReadSize) in ReadMoreInput()
78 int len = br.input.Read(br.byteBuffer, bytesRead, ByteReadSize - bytesRead); in ReadMoreInput()
83 br.tailBytes = bytesRead; in ReadMoreInput()
84 bytesRead += 3; in ReadMoreInput()
87 bytesRead += len; in ReadMoreInput()
94 Org.Brotli.Dec.IntReader.Convert(br.intReader, bytesRead >> 2); in ReadMoreInput()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/
DFontDataTests.java206 int bytesRead = rfd.readBytes(index, buffer, 0, buffer.length); in readFontDataWithBuffer() local
207 System.arraycopy(buffer, 0, b, index, bytesRead); in readFontDataWithBuffer()
208 index += bytesRead; in readFontDataWithBuffer()
219 int bytesRead = rfd.readBytes(index, b, index, windowSize); in readFontDataWithSlidingWindow() local
220 index += bytesRead; in readFontDataWithSlidingWindow()
240 int bytesRead = rfd.readBytes(index, buffer, 0, buffer.length); in writeFontDataWithBuffer() local
242 index += bytesRead; in writeFontDataWithBuffer()
253 int bytesRead = rfd.readBytes(index, b, index, windowSize); in writeFontDataWithSlidingWindow() local
254 wfd.writeBytes(index, b, index, bytesRead); in writeFontDataWithSlidingWindow()
255 index += bytesRead; in writeFontDataWithSlidingWindow()
DByteArrayTests.java107 int bytesRead = ba.get(index, buffer); in readByteArrayWithBuffer() local
108 System.arraycopy(buffer, 0, b, index, bytesRead); in readByteArrayWithBuffer()
109 index += bytesRead; in readByteArrayWithBuffer()
121 int bytesRead = ba.get(index, b, index, windowSize); in readByteArrayWithSlidingWindow() local
122 index += bytesRead; in readByteArrayWithSlidingWindow()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter() local
226 if (bytesRead <= 0) { in filter()
230 bufLen += bytesRead; in filter()
231 bytesRemaining -= bytesRead; in filter()
295 int bytesRead = 0; in show() local
314 while ((bytesRead = inputStream.read(bytes, offset, 1024)) >= 0) { in show()
315 offset = bytesRead % 4; in show()
316 chBytes = bytesRead - offset; in show()
329 while ((bytesRead = isr.read(buffer, 0, 1024)) >= 0) { in show()
330 sb.append(buffer, 0, bytesRead); in show()
/third_party/skia/docs/examples/
DPath_readFromMemory.cpp14 size_t bytesRead = copy.readFromMemory(storage.begin(), wrongSize); in draw() local
15 SkDebugf("length = %zu; returned by readFromMemory = %zu\n", wrongSize, bytesRead); in draw()
17 bytesRead = copy.readFromMemory(storage.begin(), largerSize); in draw()
18 SkDebugf("length = %zu; returned by readFromMemory = %zu\n", largerSize, bytesRead); in draw()
/third_party/node/lib/internal/fs/
Dread_file_context.js25 function readFileAfterRead(err, bytesRead) { argument
31 context.pos += bytesRead;
33 if (context.pos === context.size || bytesRead === 0) {
38 const buffer = bytesRead === kReadFileUnknownBufferLength ?
39 context.buffer : context.buffer.slice(0, bytesRead);
Dstreams.js97 (r) => cb(null, r.bytesRead, r.buffer),
190 this.bytesRead = 0;
239 MathMin(this.end - this.bytesRead + 1, n);
250 .read(this.fd, buf, 0, n, this.pos, (er, bytesRead, buf) => {
261 } else if (bytesRead > 0) {
263 this.pos += bytesRead;
266 this.bytesRead += bytesRead;
268 if (bytesRead !== buf.length) {
272 const dst = Buffer.allocUnsafeSlow(bytesRead);
273 buf.copy(dst, 0, 0, bytesRead);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/compression/
DDecompressionTest.java44 int [] bytesRead = new int[1]; in decompressTest() local
49 bytesRead, in decompressTest()
54 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
61 bytesRead, in decompressTest()
67 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
DDecompressionTest.java41 int [] bytesRead = new int[1]; in decompressTest() local
46 bytesRead, in decompressTest()
51 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
58 bytesRead, in decompressTest()
64 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetMatch.java96 int bytesRead = 0; in getString()
98 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
99 sb.append(buffer, 0, bytesRead); in getString()
100 max -= bytesRead; in getString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCharsetMatch.java91 int bytesRead = 0; in getString()
93 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
94 sb.append(buffer, 0, bytesRead); in getString()
95 max -= bytesRead; in getString()
/third_party/protobuf/csharp/src/Google.Protobuf/
DLimitedInputStream.cs88 int bytesRead = proxied.Read(buffer, offset, Math.Min(bytesLeft, count)); in Read()
89 bytesLeft -= bytesRead; in Read()
90 return bytesRead; in Read()
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/common/
DSetZeroDictionaryTest.java38 int bytesRead; in testZeroDictionary() local
39 while ((bytesRead = decoder.read(output, offset, 17 - offset)) != -1) { in testZeroDictionary()
40 offset += bytesRead; in testZeroDictionary()
/third_party/skia/src/codec/
DSkBmpCodec.cpp62 bool SkBmpCodec::IsBmp(const void* buffer, size_t bytesRead) { in IsBmp() argument
65 return bytesRead >= sizeof(bmpSig) && !memcmp(buffer, bmpSig, sizeof(bmpSig)); in IsBmp()
420 const uint32_t bytesRead = kBmpHeaderBytes + infoBytes + maskBytes; in ReadHeader() local
421 if (!inIco && offset < bytesRead) { in ReadHeader()
491 offset - bytesRead, rowOrder, isOpaque, in ReadHeader()
519 if (stream->skip(offset - bytesRead) != offset - bytesRead) { in ReadHeader()
581 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()

123456