FStreamSizeHolder Declaration remembers size of stream chunk for backward compatibility.
More...
#include <fstreamer.h>
FStreamSizeHolder Declaration remembers size of stream chunk for backward compatibility.
Example:
externalize (a)
{
sizeHolder.beginWrite ();
a << ....
sizeHolder.endWrite ();
}
internalize (a)
{
sizeHolder.beginRead ();
a >> ....
sizeHolder.endRead ();
}
FStreamSizeHolder(FStreamer &s)
Definition: fstreamer.cpp:93
◆ FStreamSizeHolder()
◆ beginWrite()
remembers position and writes 0
◆ endWrite()
writes and returns size (since the start marker)
◆ beginRead()
◆ endRead()
◆ stream
◆ sizePos