MCPcopy Create free account
hub / github.com/GollyGang/ready / WriteBytesToFile

Function WriteBytesToFile

src/gui/wxutils.cpp:333–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331// -----------------------------------------------------------------------------
332
333void WriteBytesToFile(vtkUnsignedCharArray* bytes, const wxFileName& filename)
334{
335 wxFileOutputStream to_file(filename.GetFullPath());
336 wxDataOutputStream out(to_file);
337 for (vtkIdType i = 0; i < bytes->GetNumberOfTuples(); i++) {
338 out.Write8(bytes->GetValue(i));
339 }
340}
341
342// -----------------------------------------------------------------------------
343

Callers 1

WriteImageToFileFunction · 0.85

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected