Lines Matching defs:writer
390 std::unique_ptr<BlockWriter> writer = std::make_unique<BlockWriter>(cmd.GetFileDescriptor(), *this);
391 if (writer.get() == nullptr) {
392 LOG(ERROR) << "Cannot create block writer, pkgdiff patch abort!";
397 return (writer->Write(data.buffer, size, nullptr)) ? 0 : -1;
399 writer.reset();
407 std::unique_ptr<BlockWriter> writer = std::make_unique<BlockWriter>(cmd.GetFileDescriptor(), *this);
408 if (writer.get() == nullptr) {
409 LOG(ERROR) << "Cannot create block writer, pkgdiff patch abort!";
414 return (writer->Write(data.buffer, size, nullptr)) ? 0 : -1;
416 writer.reset();