MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLPipeWrite

Function CPLPipeWrite

port/cpl_spawn.cpp:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170/************************************************************************/
171
172int CPLPipeWrite(CPL_FILE_HANDLE fout, const void *data, int length)
173{
174 const GByte *pabyData = static_cast<const GByte *>(data);
175 int nRemain = length;
176 while (nRemain > 0)
177 {
178 DWORD nWritten = 0;
179 if (!WriteFile(fout, pabyData, nRemain, &nWritten, nullptr))
180 return FALSE;
181 pabyData += nWritten;
182 nRemain -= nWritten;
183 }
184 return TRUE;
185}
186
187/************************************************************************/
188/* FillFileFromPipe() */

Callers 6

SendConfigOptionsFunction · 0.85
ifFunction · 0.85
FillPipeFromFileFunction · 0.85

Calls 2

CPLErrorFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected