MCPcopy Create free account
hub / github.com/OSGeo/PROJ / write

Method write

src/filemanager.cpp:647–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645// ---------------------------------------------------------------------------
646
647size_t FileWin32::write(const void *buffer, size_t sizeBytes) {
648 DWORD dwSizeWritten = 0;
649 size_t nResult = 0;
650
651 if (!WriteFile(m_handle, buffer, static_cast<DWORD>(sizeBytes),
652 &dwSizeWritten, nullptr))
653 nResult = 0;
654 else
655 nResult = dwSizeWritten;
656
657 return nResult;
658}
659
660// ---------------------------------------------------------------------------
661

Calls

no outgoing calls

Tested by 4

test_tester_from_yamlFunction · 0.36
test_test_tmpdirFunction · 0.36
test_out_cmdsFunction · 0.36