A manipulator that specifies the length of String, Blob, and array values to be subsequently encoded/decoded. More...
#include <DataEncoder.h++>

Public Member Functions | |
| SetLength (size_t length) throw () | |
| Construct a new SetLength manipulator. | |
| ~SetLength () throw () | |
| Destructor. | |
Protected Member Functions | |
| void | apply (DataEncoder &encoder) const throw (IOException) |
| Apply the DataManipulator to a DataEncoder. | |
A manipulator that specifies the length of String, Blob, and array values to be subsequently encoded/decoded.
Depending on whether string padding is enabled or disabled, encoded strings will be padded with either space characters or NUL bytes, respectively.
| SetLength | ( | size_t | length | ) | throw () |
Construct a new SetLength manipulator.
| length | The string length. |
| ~SetLength | ( | ) | throw () |
Destructor.
| void apply | ( | DataEncoder & | encoder | ) | const throw (IOException) [protected, virtual] |
Apply the DataManipulator to a DataEncoder.
| encoder | The target DataEncoder. |
| IOException | If an I/O error occurs. |
Implements Manipulator.
1.6.3