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

Method Write

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

Source from the content-addressed store, hash-verified

100}
101
102bool UnixFile::Write(const void* buffer, uint32 bytesToWrite, uint32* bytesWritten)
103{
104 const ssize_t tmp = write(_handle, buffer, bytesToWrite);
105 if (tmp != -1)
106 {
107 if (bytesWritten)
108 *bytesWritten = tmp;
109 return false;
110 }
111 if (bytesWritten)
112 *bytesWritten = 0;
113 LOG_UNIX_LAST_ERROR;
114 return true;
115}
116
117void UnixFile::Close()
118{

Callers 12

LoadTimelineMethod · 0.45
ProcessGroupToolsMethod · 0.45
ProcessModuleMethod · 0.45
GenerateMethod · 0.45
UseKillMethod · 0.45
WriteReturnOnKillMethod · 0.45
ProcessGroupTexturesMethod · 0.45
WriteAllBytesMethod · 0.45
SaveBitmapToFileMethod · 0.45
CopyFileMethod · 0.45

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected