Lines Matching refs:len
138 size_t len = file_contents.data.size(); in WriteBufferToPartition() local
153 if (!android::base::WriteFully(fd, data + start, len - start)) { in WriteBufferToPartition()
154 PLOG(ERROR) << "Failed to write " << len - start << " bytes to \"" << partition << "\""; in WriteBufferToPartition()
190 start = len; in WriteBufferToPartition()
191 for (size_t p = 0; p < len; p += sizeof(buffer)) { in WriteBufferToPartition()
192 size_t to_read = len - p; in WriteBufferToPartition()
209 if (start == len) { in WriteBufferToPartition()
367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget() argument
368 SHA1_Update(&ctx, data, len); in GenerateTarget()
369 patched.data.insert(patched.data.end(), data, data + len); in GenerateTarget()
370 return len; in GenerateTarget()