This class implements a mechanism capable of converting data of arbitrary length to its corresponding Hex representation.
Declared in <bdlde_hexencoder.h>
class HexEncoder;
| Name | Description |
|---|---|
HexEncoder [constructor] | Create a Hex encoder in the initial state. |
convert | convert overloads |
endConvert | endConvert overloads |
isAcceptable | Return true if the input read so far by this encoder is considered syntactically complete, and false otherwise. |
isDone | Return true if this encoder is in the done state with no pending output. |
isError | Return true if this encoder cannot achieve an acceptable result. |
isInitialState | Return true if this encoder is in the initial state (i.e., as if no input had been consumed), and false otherwise. |
isUpperCase | Return true if this encoder represents values from 10 to 15 as uppercase letters(A-F), and false if these values are represented as lowercase letters(a-f). |
numOutputPending | Return the number of characters that would be output if endConvert were called with no output limit. |
outputLength | Return the total length of output emitted by this encoder. |
reset | Reset this encoder to its initial state (i.e., as if no input had been consumed). |