![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents a block of encrypted data..
Instances of this class will be used in the following S63 processes:
Public Member Functions | |
void | freeBuffer (unsigned char *buffer) const |
bool | loadData (TSLifstream &stream) |
bool | loadDataFromBuffer (const unsigned char *data, int dataLength) |
bool | saveData (TSLofstream &stream) const |
unsigned char * | saveDataToBuffer (int &dataLength) const |
void TSLS63EncryptedData::freeBuffer | ( | unsigned char * | buffer | ) | const |
Deletes the buffer returned from 'saveDataToBuffer'.
This method must be used to delete the buffer after a call to 'saveDataTo Buffer' to ensure that the allocating library is also the deallocating library. If this does not happen then the memory may be leaked.
buffer | Buffer to be deleted, returned from saveDataToBuffer. |
bool TSLS63EncryptedData::loadData | ( | TSLifstream & | stream | ) |
Loads an encrypted data block from the provided TSLifstream.
stream | Stream to use to load the data. |
bool TSLS63EncryptedData::loadDataFromBuffer | ( | const unsigned char * | data, |
int | dataLength ) |
Loads encrypted data from the provided buffer.
This method allows you to load encrypted data from a buffer. This will overwrite any existing data in the object. The data passed in must be an encrypted data buffer such as is generated by the saveDataToBuffer() method. The user retains ownership of the buffer passed in.
data | A pointer to the data to load |
dataLength | The size of the buffer passed in. |
bool TSLS63EncryptedData::saveData | ( | TSLofstream & | stream | ) | const |
Saves the encrypted data to the provided TSLofstream.
stream | Stream to use to save the cell. |
unsigned char * TSLS63EncryptedData::saveDataToBuffer | ( | int & | dataLength | ) | const |
Creates a buffer and propulates it with the encrypted data contained by this class.
It is your responsibility to free the buffer, using the freeBuffer function, after you are finished with it.
dataLength | Storage for the size of the data that was saved in bytes. |