#include <QtCrypto>
Public Member Functions | |
virtual void | clear () |
virtual MemoryRegion | final () |
Hex (Direction dir=Encode) | |
virtual bool | ok () const |
virtual MemoryRegion | update (const MemoryRegion &a) |
hextest.cpp, and randomtest.cpp.
QCA::Hex::Hex | ( | Direction | dir = Encode |
) |
Standard constructor.
dir | the Direction that should be used. |
virtual void QCA::Hex::clear | ( | ) | [virtual] |
virtual MemoryRegion QCA::Hex::final | ( | ) | [virtual] |
Complete the algorithm.
Implements QCA::Filter.
virtual bool QCA::Hex::ok | ( | ) | const [virtual] |
Test if an update() or final() call succeeded.
Implements QCA::Filter.
virtual MemoryRegion QCA::Hex::update | ( | const MemoryRegion & | a | ) | [virtual] |
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().
a | the array containing data to process |
Implements QCA::Filter.