#include <QtCrypto>
Hexadecimal encoding / decoding.
- Examples
- hextest.cpp, and randomtest.cpp.
◆ Hex()
Standard constructor.
- Parameters
-
dir | the Direction that should be used. |
- Note
- The direction can be changed using the setup() call.
◆ clear()
Reset the internal state.
This is useful to reuse an existing Hex object
Implements QCA::Filter.
◆ update()
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in the constructor or setup() call) representation.
If you find yourself with code that only calls this method once, you might be better off using encode() or decode(). Similarly, if the data is really a string, you might be better off using arrayToString(), encodeString(), stringToArray() or decodeString().
- Parameters
-
a | the array containing data to process |
Implements QCA::Filter.
◆ final()
Complete the algorithm.
- Returns
- any remaining output. Because of the way hexadecimal encoding works, this will return a zero length array - any output will have been returned from the update() call.
Implements QCA::Filter.
◆ ok()
bool QCA::Hex::ok |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: