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

Method ForwardAppendedDataOffset

IO/XML/vtkXMLWriter.cxx:934–952  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

932
933//------------------------------------------------------------------------------
934void vtkXMLWriter::ForwardAppendedDataOffset(
935 vtkTypeInt64 streamPos, vtkTypeInt64 offset, const char* attr)
936{
937 ostream& os = *(this->Stream);
938 std::streampos returnPos = os.tellp();
939 os.seekp(std::streampos(streamPos));
940 if (attr)
941 {
942 os << " " << attr << "=";
943 }
944 os << "\"" << offset << "\"";
945 os.seekp(returnPos);
946
947 os.flush();
948 if (os.fail())
949 {
950 this->SetErrorCode(vtkErrorCode::GetLastSystemError());
951 }
952}
953
954//------------------------------------------------------------------------------
955void vtkXMLWriter::ForwardAppendedDataDouble(vtkTypeInt64 streamPos, double value, const char* attr)

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected