|
virtual P6R::P6ERR P6R::p6ISafeString::sizetToString |
( |
P6R::P6SIZE |
value, |
|
|
P6R::P6CHAR * |
pBuffer, |
|
|
P6R::P6SIZE |
cBuffer, |
|
|
P6R::P6UINT32 |
radix, |
|
|
P6R::P6SIZE * |
pcWritten | |
|
) |
| | [pure virtual] |
Convert a P6SIZE integer to a string with the specified radix.
Radix's of 2 to 36 are supported.
- Parameters:
-
| value | [in] The P6SIZE integer to convert into a string. |
| pBuffer | [out] The address of a P6CHAR buffer in which to place the resulting string. |
| cBuffer | [in] The size of pBuffer in characters. |
| radix | [in] The radix to use for the conversion. The valid range is 2 through 36. Typical values are 8 (octal), 10 (decimal), and 16 (hex). |
| pcWritten | [out, optional] The address of a P6SIZE which, if not NULL, will contain the number of characters placed in pBuffer. |
- Returns:
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pBuffer is NULL, cBuffer is zero or radix is out of range |
P6R::eTooSmall | Pbuffer is not large enough to contain the resulting string. |
|