Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 - 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/oboe/src/common/
H A DFixedBlockReader.cpp38 int32_t bytesToRead = numBytes; in readFromStorage() local
40 if (bytesToRead > dataAvailable) { in readFromStorage()
41 bytesToRead = dataAvailable; in readFromStorage()
43 memcpy(buffer, mStorage.get() + mPosition, bytesToRead); in readFromStorage()
44 mPosition += bytesToRead; in readFromStorage()
45 return bytesToRead; in readFromStorage()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
H A DFontInputStream.java131 int bytesToRead = bounded ? (int) Math.min(len, this.length - this.position) : len; in read()
132 int bytesRead = super.read(b, off, bytesToRead); in read()
/third_party/skia/tests/
H A DFrontBufferedStreamTest.cpp21 const void* expectations, size_t bytesToRead) { in test_read()
23 SkAutoMalloc storage(bytesToRead); in test_read()
25 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
26 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
20 test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, const void* expectations, size_t bytesToRead) test_read() argument
/third_party/lz4/examples/
H A DframeCompress.c348 size_t bytesToRead = sizeof b1; in compareFiles() local
354 bytesToRead = bytesToOffset; in compareFiles()
361 bytesToRead = sizeof b1; in compareFiles()
362 r0 = fread(b0, 1,bytesToRead, fpUnc); in compareFiles()
364 r0 = fread(b0, 1, bytesToRead, fp0); in compareFiles()
/third_party/skia/src/codec/
H A DSkRawCodec.cpp364 const size_t bytesToRead = std::min(sum, fStream->getLength()) - offset; variable
365 if (bytesToRead == 0) {
371 static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead));
375 sk_sp<SkData> data(SkData::MakeUninitialized(bytesToRead));
379 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead);
380 if (bytesRead < bytesToRead) {
H A DSkCodec.cpp105 constexpr size_t bytesToRead = MinBufferedBytesNeeded(); in MakeFromStream() local
107 char buffer[bytesToRead]; in MakeFromStream()
108 size_t bytesRead = stream->peek(buffer, bytesToRead); in MakeFromStream()
110 // It is also possible to have a complete image less than bytesToRead bytes in MakeFromStream()
111 // (e.g. a 1 x 1 wbmp), meaning peek() would return less than bytesToRead. in MakeFromStream()
112 // Assume that if bytesRead < bytesToRead, but > 0, the stream is shorter in MakeFromStream()
113 // than bytesToRead, so pass that directly to the decoder. in MakeFromStream()
125 bytesRead = stream->read(buffer, bytesToRead); in MakeFromStream()
161 if (bytesRead < bytesToRead) { in MakeFromStream()
/third_party/node/lib/
H A Dassert.js195 const bytesToRead = column - code.length + 2500;
196 const buffer = Buffer.allocUnsafe(bytesToRead);
197 const bytesRead = readSync(fd, buffer, 0, bytesToRead);
200 if (bytesRead < bytesToRead) {
/third_party/node/test/common/
H A Dindex.js68 const bytesToRead = 1500;
69 const buffer = Buffer.allocUnsafe(bytesToRead);
71 const bytesRead = fs.readSync(fd, buffer, 0, bytesToRead);

Completed in 8 milliseconds