TranslateData - cXmlHttpTransfer
Translates the data based on the mode and returns a pointer to the translated data
Type: Function
Return Data Type: Pointer
Parameters
| Parameter | Type | Description |
|---|---|---|
| eXlt | Integer | Translation mode. Must be one of xtUtf8toOem, xtOemtoUtf8 or xtNoTranslate |
| pData | Pointer | Memory address of data to translate |
| iDataLen | Integer | Length of data pointed to by aData |
Syntax
Function TranslateData Integer eXlt Pointer pData Integer iDataLen Returns Pointer
Call Example
Get TranslateData eXlt pData iDataLen to PointerVariable
Description
The TranslateData function translates the data based on the mode and returns a pointer to the translated data. This is passed a translation mode, a pointer to the data and the data length. The data is zero-terminated, so this function assumes that the translated data will not contain any embedded zeros.
This function never changes the passed data. This method is suitable for augmentation in sub-classes.
Return Value
If no translation is required (eTranslate = xtNoTranslate) or an error occurs, a zero is returned.