Interface for classes which can return their streamed length. More...
#include <DwmStreamedLengthCapable.hh>
Public Member Functions | |
| virtual uint64_t | StreamedLength () const =0 |
| Return the number of bytes that would be written if the object's Write(ostream &), Write(FILE *) or Write(int) member were called. | |
Interface for classes which can return their streamed length.
This is often an expensive operation on variable-length data structures, but is useful when we want to store the length of a piece of data before the data itself, since it allows us to skip over the data (or just treeat it as an opaque blob) without interpreting it.
|
pure virtual |
Return the number of bytes that would be written if the object's Write(ostream &), Write(FILE *) or Write(int) member were called.
These members would be inherited from StreamWritable, FileWritable or DescriptorWritable, respectively.