MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / readNative

Method readNative

source/io/fszipopennode.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93U32 FsZipOpenNode::readNative(U8* buffer, U32 len) {
94 U32 result = 0;
95 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(*getReadMutex());
96 std::shared_ptr<FsZip> fsZip = zipNode->fsZip.lock();
97 if (fsZip) {
98 fsZip->setupZipRead(this->offset, this->pos);
99 result = unzReadCurrentFile(fsZip->zipfile, buffer, len);
100 this->pos += result;
101 fsZip->lastZipFileOffset = this->pos;
102 }
103 return result;
104}
105
106U32 FsZipOpenNode::writeNative(U8* buffer, U32 len) {
107 kpanic("FsZipOpenNode::writeNative not implemented");

Callers 2

moveToFileSystemMethod · 0.45
internalReadMethod · 0.45

Calls 3

unzReadCurrentFileFunction · 0.85
setupZipReadMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected