Enables deserialization of a selection of elements. Note that in order to retain the integrity of the stream, the caller must call some combination of DeSerializeElement and DeSerializeSkip of the exact number returned in size, assuming a true return.
| 577 | // of DeSerializeElement and DeSerializeSkip of the exact number returned in |
| 578 | // *size, assuming a true return. |
| 579 | static bool DeSerializeSize(bool swap, TFile* fp, inT32* size) { |
| 580 | if (fp->FRead(size, sizeof(*size), 1) != 1) return false; |
| 581 | if (swap) Reverse32(size); |
| 582 | return true; |
| 583 | } |
| 584 | // Reads and appends to the vector the next element of the serialization. |
| 585 | bool DeSerializeElement(bool swap, TFile* fp) { |
| 586 | inT8 non_null; |