MCPcopy Create free account
hub / github.com/Kitware/VTK / Write

Method Write

Common/Core/vtkWin32ProcessOutputWindow.cxx:139–159  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

137
138//------------------------------------------------------------------------------
139void vtkWin32ProcessOutputWindow::Write(const char* data, size_t length)
140{
141 if (data && length)
142 {
143 // Initialize the output pipe the first time.
144 if (this->Broken || (!this->OutputPipe && !this->Initialize()))
145 {
146 this->Broken = 1;
147 return;
148 }
149
150 // Write the data to the pipe. If it breaks, close the pipe.
151 DWORD nWritten;
152 if (!WriteFile(this->OutputPipe, data, (DWORD)length, &nWritten, 0))
153 {
154 this->Broken = 1;
155 CloseHandle(this->OutputPipe);
156 this->OutputPipe = 0;
157 }
158 }
159}
160VTK_ABI_NAMESPACE_END

Callers 15

DisplayTextMethod · 0.95
setUpMethod · 0.45
testCutterTrianglesMethod · 0.45
testCutterNoTrianglesMethod · 0.45
TestThreadedCopyFunction · 0.45
IsConvexFunction · 0.45
IntersectWithCellFunction · 0.45
TestLagrangeWedgeFunction · 0.45

Calls 1

InitializeMethod · 0.95

Tested by 15

setUpMethod · 0.36
testCutterTrianglesMethod · 0.36
testCutterNoTrianglesMethod · 0.36
TestThreadedCopyFunction · 0.36
IsConvexFunction · 0.36
IntersectWithCellFunction · 0.36
TestLagrangeWedgeFunction · 0.36
IntersectWithCellFunction · 0.36