Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 - 25 of 101) sorted by relevance

12345

/third_party/skia/third_party/externals/oboe/src/common/
H A 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 in read()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dfread.c196 size_t bytesRead = fread(buffer, 1, READ_LENGTH, fp); in fread_0600() local
197 buffer[bytesRead] = '\0'; in fread_0600()
203 bytesRead = fread(buffer, READ_LENGTH, 1, fp); in fread_0600()
210 bytesRead = fread(buffer, 1, READ_LENGTH, fp); in fread_0600()
211 buffer[bytesRead] = '\0'; in fread_0600()
217 bytesRead = fread(buffer, 1, BUFFER_SIZE_1024, fp); in fread_0600()
218 buffer[bytesRead] = '\0'; in fread_0600()
224 bytesRead = fread(buffer, 1, BUFFER_SIZE_1026, fp); in fread_0600()
225 buffer[bytesRead] = '\0'; in fread_0600()
270 size_t bytesRead in fread_0700() local
344 size_t bytesRead = fread(buffer, 1, READ_LENGTH, fp); fread_0800() local
[all...]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
H A DByteArray.java230 int bytesRead = 0; in copyTo()
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()
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 in copyFrom()
[all...]
H A DFontInputStream.java132 int bytesRead = super.read(b, off, bytesToRead); in read()
133 this.position += bytesRead; in read()
134 return bytesRead; in read()
/third_party/node/test/parallel/
H A 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);
H A 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, fileSiz
[all...]
H A 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);
H A 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);
H A Dtest-tls-client-destroy-soon.js54 let bytesRead = 0;
59 bytesRead += d.length;
64 assert.strictEqual(big.length, bytesRead);
H A 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);
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
H A 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/docs/examples/
H A DPath_readFromMemory.cpp14 size_t bytesRead = copy.readFromMemory(storage.begin(), wrongSize); in REG_FIDDLE() local
15 SkDebugf("length = %zu; returned by readFromMemory = %zu\n", wrongSize, bytesRead); in REG_FIDDLE()
17 bytesRead = copy.readFromMemory(storage.begin(), largerSize); in REG_FIDDLE()
18 SkDebugf("length = %zu; returned by readFromMemory = %zu\n", largerSize, bytesRead); in REG_FIDDLE()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
H A DDetectingViewer.java224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter()
226 if (bytesRead <= 0) { in filter()
230 bufLen += bytesRead; in filter()
231 bytesRemaining -= bytesRead; in filter()
295 int bytesRead = 0; in show()
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()
[all...]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/
H A DFontDataTests.java206 int bytesRead = rfd.readBytes(index, buffer, 0, buffer.length); in readFontDataWithBuffer()
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()
220 index += bytesRead; in readFontDataWithSlidingWindow()
240 int bytesRead = rfd.readBytes(index, buffer, 0, buffer.length); in writeFontDataWithBuffer()
242 index += bytesRead; in writeFontDataWithBuffer()
253 int bytesRead = rfd.readBytes(index, b, index, windowSize); in writeFontDataWithSlidingWindow()
254 wfd.writeBytes(index, b, index, bytesRead); in writeFontDataWithSlidingWindow()
255 index += bytesRead; in writeFontDataWithSlidingWindow()
[all...]
H A DByteArrayTests.java107 int bytesRead = ba.get(index, buffer); in readByteArrayWithBuffer()
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()
122 index += bytesRead; in readByteArrayWithSlidingWindow()
/third_party/node/lib/internal/fs/
H A Dread_file_context.js25 function readFileAfterRead(err, bytesRead) {
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);
H A 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);
[all...]
H A Dpromises.js293 const { bytesRead } = await readFn(view, view.byteOffset, view.byteLength);
295 if (bytesRead === 0) {
300 controller.byobRequest.respond(bytesRead);
508 const bytesRead = (await binding.read(filehandle.fd, buffer, offset,
510 totalRead += bytesRead;
512 if (bytesRead === 0 ||
514 (bytesRead !== buffer.length && !chunkedRead)) {
515 const singleRead = bytesRead === totalRead;
517 const bytesToCheck = chunkedRead ? totalRead : bytesRead;
621 return { bytesRead
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A 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/
H A DSetZeroDictionaryTest.java38 int bytesRead; in testZeroDictionary()
39 while ((bytesRead = decoder.read(output, offset, 17 - offset)) != -1) { in testZeroDictionary()
40 offset += bytesRead; in testZeroDictionary()
H A DSetRfcDictionaryTest.java57 int bytesRead; in testSetRfcDictionary()
58 while ((bytesRead = decoder.read(output, offset, 17 - offset)) != -1) { in testSetRfcDictionary()
59 offset += bytesRead; in testSetRfcDictionary()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A 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/
H A 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/skia/third_party/externals/brotli/java/org/brotli/wrapper/dec/
H A DDecoder.java88 int bytesRead = source.read(inputBuffer); in decode()
89 if (bytesRead == -1) { in decode()
92 if (bytesRead == 0) { in decode()
97 decoder.push(bytesRead); in decode()
/third_party/skia/src/codec/
H A DSkIcoCodec.cpp22 bool SkIcoCodec::IsIco(const void* buffer, size_t bytesRead) { in IsIco() argument
25 return bytesRead >= sizeof(icoSig) && in IsIco()
162 uint32_t bytesRead = kIcoDirectoryBytes + numImages * kIcoDirEntryBytes; in MakeFromStream() local
170 if (offset < bytesRead) { in MakeFromStream()
181 bytesRead = offset; in MakeFromStream()
191 bytesRead += size; in MakeFromStream()

Completed in 10 milliseconds

12345