Home
last modified time | relevance | path

Searched refs:alreadyBuffered (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/codec/
DSkRawCodec.cpp261 const size_t alreadyBuffered = std::min(fStreamBuffer.bytesWritten() - offset, size); in transferBuffer() local
262 if (alreadyBuffered > 0 && in transferBuffer()
263 !fStreamBuffer.read(data->writable_data(), offset, alreadyBuffered)) { in transferBuffer()
267 const size_t remaining = size - alreadyBuffered; in transferBuffer()
269 auto* dst = static_cast<uint8_t*>(data->writable_data()) + alreadyBuffered; in transferBuffer()
273 if (!safe_add_to_size_t(alreadyBuffered, bytesRead, &newSize)) { in transferBuffer()
/external/skqp/src/codec/
DSkRawCodec.cpp261 const size_t alreadyBuffered = SkTMin(fStreamBuffer.bytesWritten() - offset, size); in transferBuffer() local
262 if (alreadyBuffered > 0 && in transferBuffer()
263 !fStreamBuffer.read(data->writable_data(), offset, alreadyBuffered)) { in transferBuffer()
267 const size_t remaining = size - alreadyBuffered; in transferBuffer()
269 auto* dst = static_cast<uint8_t*>(data->writable_data()) + alreadyBuffered; in transferBuffer()
273 if (!safe_add_to_size_t(alreadyBuffered, bytesRead, &newSize)) { in transferBuffer()
/external/lz4/lib/
Dlz4frame.c326 size_t alreadyBuffered) in LZ4F_compressBound_internal() argument
336 size_t const bufferedSize = MIN(alreadyBuffered, maxBuffered); in LZ4F_compressBound_internal()