| 91 | } |
| 92 | |
| 93 | U32 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 | |
| 106 | U32 FsZipOpenNode::writeNative(U8* buffer, U32 len) { |
| 107 | kpanic("FsZipOpenNode::writeNative not implemented"); |
no test coverage detected