------------------------------------------------------------------------------
| 932 | |
| 933 | //------------------------------------------------------------------------------ |
| 934 | void 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 | //------------------------------------------------------------------------------ |
| 955 | void vtkXMLWriter::ForwardAppendedDataDouble(vtkTypeInt64 streamPos, double value, const char* attr) |
no test coverage detected