MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Read

Method Read

Source/Engine/Platform/Unix/UnixFile.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool UnixFile::Read(void* buffer, uint32 bytesToRead, uint32* bytesRead)
88{
89 const ssize_t tmp = read(_handle, buffer, bytesToRead);
90 if (tmp != -1)
91 {
92 if (bytesRead)
93 *bytesRead = tmp;
94 return false;
95 }
96 if (bytesRead)
97 *bytesRead = 0;
98 LOG_UNIX_LAST_ERROR;
99 return true;
100}
101
102bool UnixFile::Write(const void* buffer, uint32 bytesToWrite, uint32* bytesWritten)
103{

Callers 3

loadMethod · 0.45
ReadAllBytesMethod · 0.45
CopyFileMethod · 0.45

Calls 1

readFunction · 0.85

Tested by

no test coverage detected