|
libcommonc++
0.7
|
A manipulator that skips past enough bytes to re-align the data stream at a specified boundary. More...
#include <DataEncoder.h++>


Public Member Functions | |
| Align (size_t size) | |
| Construct a new Align manipulator. More... | |
| ~Align () | |
| Destructor. More... | |
Protected Member Functions | |
| void | apply (DataEncoder &encoder) const |
| Apply the DataManipulator to a DataEncoder. More... | |
A manipulator that skips past enough bytes to re-align the data stream at a specified boundary.
When reading, the bytes are simply skipped; when writing, the bytes are filled with NULs.
| Align | ( | size_t | size | ) |
Construct a new Align manipulator.
| size | The alignment size. Typical values include 2, 4, or 8. Other values are allowed but are of limited usefulness. |
| ~Align | ( | ) |
Destructor.
|
protectedvirtual |
Apply the DataManipulator to a DataEncoder.
| encoder | The target DataEncoder. |
| IOException | If an I/O error occurs. |
Implements DataEncoder::Manipulator.