Changeset 2481 in Sophya for trunk/SophyaLib/BaseTools/ppfbinstream.cc
- Timestamp:
- Dec 9, 2003, 9:29:45 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppfbinstream.cc
r2477 r2481 202 202 int_8 pos; 203 203 GetRawI8(pos); 204 Get TypeTag(ppstype);204 GetRawUByte(ppstype); 205 205 if (ppstype != PPS_EOF) 206 206 throw FileFormatExc("PPFBinaryInputStream::ReadNameTagTable() Corrupted file, no EOF tag at end of file"); … … 208 208 // On se positionne au debut du NameTagTable 209 209 s->seekg(pos); 210 Get TypeTag(ppstype);210 GetRawUByte(ppstype); 211 211 if (ppstype != PPS_NAMETAG_TABLE) 212 212 throw FileFormatExc("PPFBinaryInputStream::ReadNameTagTable() Corrupted file PPS_NAMETAG_TABLE not found"); … … 242 242 s->seekg(-(sizeof(int_8)+1), ios::end); 243 243 244 Get TypeTag(ppstype);244 GetRawUByte(ppstype); 245 245 if (ppstype != PPS_EOF) 246 246 throw FileFormatExc("PPFBinaryInputStream::ReadNameTagTableV2() Corrupted file, no eof entry at end of file"); … … 256 256 s->seekg(pos); 257 257 while (true) { 258 Get TypeTag(ppstype);258 GetRawUByte(ppstype); 259 259 if (ppstype == PPS_EOF) break; 260 260 … … 280 280 { 281 281 s->seekg(pos); 282 unsigned char ppstag; 283 GetRawUByte(ppstag); 284 if (ppstag != PPS_POSTAG_MARK) 285 throw FileFormatExc("PPFBinaryInputStream::GotoPositionTag() - PPS_POSTAG_MARK not found!"); 282 286 int_8 tpos; 283 287 GetRawI8(tpos); … … 411 415 GetRawU8(ui8); 412 416 datasz = dsize; 413 asz = i8;417 asz = ui8; 414 418 break; 415 419 } … … 1297 1301 tagpos = s->tellp(); 1298 1302 PutRawByte(PPS_POSTAG_MARK); 1299 Put I8(tagpos);1303 PutRawI8(tagpos); 1300 1304 _nbpostag++; // Compteur de nombre de tags 1301 1305 return(tagpos);
Note:
See TracChangeset
for help on using the changeset viewer.