}
// skip info section
- theDevice->Seek ((streampos) anInfoSectionEnd);
+ theDevice->Seek (anInfoSectionEnd);
// propagate the opened document version to data drivers
PropagateDocumentVersion(aFileVer);
mySections.Clear();
myPAtt.Init();
Handle(TDF_Data) aData = new TDF_Data();
- streampos aDocumentPos = -1;
+ Storage_Position aDocumentPos = -1;
// 2b. Read the TOC of Sections
if (aFileVer >= 3) {
for (; anIterS.More(); anIterS.Next()) {
BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
if (aCurSection.IsPostRead() == Standard_False) {
- theDevice->Seek((streampos) aCurSection.Offset());
+ theDevice->Seek((Storage_Position)aCurSection.Offset());
if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS))
ReadShapeSection (aCurSection, theDevice);
else
#endif
if(aShapeSectionPos) {
aDocumentPos = theDevice->Tell();
- theDevice->Seek ((streampos) aShapeSectionPos);
+ theDevice->Seek (aShapeSectionPos);
//CheckShapeSection(aShapeSectionPos, theDevice);
// Read Shapes
for (; anIterS.More(); anIterS.Next()) {
BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
if (aCurSection.IsPostRead()) {
- theDevice->Seek ((streampos) aCurSection.Offset());
+ theDevice->Seek ((Storage_Position)aCurSection.Offset());
ReadSection (aCurSection, theNewDocument, theDevice);
}
}
const Standard_Size theOffset)
{
const Standard_Size aSectionEnd = (Standard_Size)theDevice->Tell();
- theDevice->Seek(myValue[0]);
+ theDevice->Seek((Storage_Position)myValue[0]);
myValue[0] = theOffset;
myValue[1] = aSectionEnd - theOffset;
Standard_Integer aVal[3] = {
#endif
theDevice->Write((Standard_Address)&aVal[0], 3*sizeof(Standard_Integer));
- theDevice->Seek(aSectionEnd);
+ theDevice->Seek((Storage_Position)aSectionEnd);
}
//=======================================================================