MCPcopy Create free account
hub / github.com/beefytech/Beef / BfpFile_Close

Function BfpFile_Close

BeefySysLib/platform/win/Platform.cpp:3095–3105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3093}
3094
3095BFP_EXPORT void BFP_CALLTYPE BfpFile_Close(BfpFile* file, BfpFileResult* outResult)
3096{
3097 if (file->mHandle != INVALID_HANDLE_VALUE)
3098 {
3099 ::CloseHandle(file->mHandle);
3100 file->mHandle = INVALID_HANDLE_VALUE;
3101 OUTRESULT(BfpFileResult_Ok);
3102 }
3103 else
3104 OUTRESULT(BfpFileResult_UnknownError);
3105}
3106
3107BFP_EXPORT intptr BFP_CALLTYPE BfpFile_Write(BfpFile* file, const void* buffer, intptr size, int timeoutMS, BfpFileResult* outResult)
3108{

Callers 2

QueueRunMethod · 0.50
ExecuteMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected