The content is currently unavailable in French. You are viewing the default English version.
Avez-vous trouvé ce résumé utile ?
Merci pour vos commentaires
Function prototype
aat_int32 AAL2QAGenQABlob (aat_int32 QANb,
aat_ascii* aQAList,
aat_ascii* aUserID,
aat_ascii* aQABlob,
aat_int32* QABlobSize);
Description
This function generates a QA BLOB from a list of question indexes with clear answer and a user ID.
Parameters
Table: Parameters (AAL2QAGenQABlob)Type | Name | Use | Description |
---|
aat_int32 | QANb | I | Number of items in the QA list. |
aat_ascii * | QAList | I | List of question indexes on two characters and answers separated by a semicolon (;). 01aNsWeR1;0Fans@er4;2Eanswer22;19answer09;8Fan;
|
aat_ascii * | UserID | I | ID of the BLOB owner on max 32 characters. |
aat_ascii * | QABlob | O | BLOB resulting from the formatted answer hash, 358+1 characters, null-terminated containing : - User ID: 32 chars
- BLOB version: 02 chars
- Hash number: 02 chars
- |Index |02 chars
- |Hash |30 chars
- Checksum: 02 chars
|
aat_int32 * | QABlobSize | I/O | In input, this parameter must indicate the size of the allocated buffer for the QABlob parameter (recommended 359 bytes). In output, this parameter indicates the length of the QABlob string (without the null-terminated character). |
Return codes
Table: Return codes (AAL2QAGenQABlob)Code | Meaning | Code | Meaning |
---|
0 | Success | 535 | Invalid QA number |
530 | Invalid QA data pointer | 541 | Invalid index list |
532 | Invalid QA data length | 1025 | Buffer too small |
533 | Invalid UserId pointer | -1501 | Memory allocation failed |
534 | Invalid UserId length | | |
Cet article vous a-t-il été utile ?
Merci pour vos commentaires! Notre équipe vous répondra