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

Method preadNative

source/kernel/kfile.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171U32 KFile::preadNative(U8* buffer, S64 offset, U32 len) {
172 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(filePosMutex);
173 S64 previousOffset = this->openFile->getFilePointer();
174 this->openFile->seek(offset);
175 U32 result = this->openFile->readNative(buffer, len);
176 this->openFile->seek(previousOffset);
177 return result;
178}
179
180U32 KFile::pwriteNative(U8* buffer, S64 offset, U32 len) {
181 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(filePosMutex);

Callers 1

onDemmandMethod · 0.80

Calls 3

getFilePointerMethod · 0.45
seekMethod · 0.45
readNativeMethod · 0.45

Tested by

no test coverage detected