Lines Matching defs:length
135 SkStream* stream, void* buffer, size_t bufferSize, size_t length) {
136 while (length > 0) {
137 const size_t bytesToProcess = std::min(bufferSize, length);
143 length -= bytesToProcess;
171 // Parse chunk length and type.
178 const size_t length = png_get_uint_32(chunk);
181 this->infoCallback(length);
187 if (!process_data(fPng_ptr, fInfo_ptr, fStream, buffer, kBufferSize, length + 4)) {
223 size_t length;
225 // Parse chunk length and type.
236 length = png_get_uint_32(chunk);
238 length = fIdatLength;
240 png_save_uint_32(idat, length);
246 if (!process_data(fPng_ptr, fInfo_ptr, this->stream(), buffer, kBufferSize, length + 4)
359 png_uint_32 length;
369 &length)) {
370 auto data = SkData::MakeWithCopy(profile, length);