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

Method Create

Bcore/src/main/cpp/ziparchive/zip_archive_stream_entry.cc:274–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274ZipArchiveStreamEntry* ZipArchiveStreamEntry::Create(ZipArchiveHandle handle,
275 const ZipEntry& entry) {
276 ZipArchiveStreamEntry* stream = nullptr;
277 if (entry.method != kCompressStored) {
278 stream = new ZipArchiveStreamEntryCompressed(handle);
279 } else {
280 stream = new ZipArchiveStreamEntryUncompressed(handle);
281 }
282 if (stream && !stream->Init(entry)) {
283 delete stream;
284 stream = nullptr;
285 }
286
287 return stream;
288}
289
290ZipArchiveStreamEntry* ZipArchiveStreamEntry::CreateRaw(ZipArchiveHandle handle,
291 const ZipEntry& entry) {

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected