MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / StoreBytes

Method StoreBytes

Bcore/src/main/cpp/ziparchive/zip_writer.cc:341–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341int32_t ZipWriter::StoreBytes(FileEntry* file, const void* data, size_t len) {
342 CHECK(state_ == State::kWritingEntry);
343
344 if (fwrite(data, 1, len, file_) != len) {
345 return HandleError(kIoError);
346 }
347 file->compressed_size += len;
348 current_offset_ += len;
349 return kNoError;
350}
351
352int32_t ZipWriter::CompressBytes(FileEntry* file, const void* data, size_t len) {
353 CHECK(state_ == State::kWritingEntry);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected