Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Handling a target buffer overflow z/OS Unicode Services User's Guide and Reference SA38-0680-00 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If the target buffer is too small, the conversion services will convert as many characters as will fit into the target buffer. When the service returns with the appropriate reason code for that situation, the source and target buffer pointers point to the byte following the last successfully converted source character (respectively inserted target character). Additionally, the source buffer length is updated to the number of bytes left unconverted in the source buffer and the target buffer length is updated to the number of bytes not yet consumed in the target buffer. There are two ways in which a caller can respond to reason code CUN_RS_TRG_EXH (target buffer exhausted):
|
Copyright IBM Corporation 1990, 2014
|