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

Method pwriteNative

source/kernel/kfile.cpp:180–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180U32 KFile::pwriteNative(U8* buffer, S64 offset, U32 len) {
181 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(filePosMutex);
182 S64 previousOffset = this->openFile->getFilePointer();
183 this->openFile->seek(offset);
184 U32 result = this->openFile->writeNative(buffer, len);
185 this->openFile->seek(previousOffset);
186 return result;
187}

Callers

nothing calls this directly

Calls 3

getFilePointerMethod · 0.45
seekMethod · 0.45
writeNativeMethod · 0.45

Tested by

no test coverage detected