libDwm-0.9.45
Dwm::StreamedLengthCapable Class Referenceabstract

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.
 

Detailed Description

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.

Member Function Documentation

◆ StreamedLength()

virtual uint64_t Dwm::StreamedLengthCapable::StreamedLength ( ) const
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.


The documentation for this class was generated from the following file: