Changeset 13999 for trunk/Mars
- Timestamp:
- 05/31/12 16:29:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/ofits.h
r13998 r13999 614 614 h.End(); 615 615 616 Checksum sum = h.WriteHeader(*this);617 size_t offset = tellp(); 616 const Checksum sum = h.WriteHeader(*this); 617 618 618 h.SetStr("CHECKSUM", sum.str()); 619 //header gets updated here. cannot direcly return this otherwise 620 //1. wrong checksum would be returned (does not matter... now) 621 //2. cannot restore the correct location of the file's cursor 619 620 const size_t offset = tellp(); 622 621 h.WriteHeader(*this); 623 622 seekp(offset); 623 624 624 return sum; 625 625 }
Note:
See TracChangeset
for help on using the changeset viewer.