dam_allocResultBuffer
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This method creates a result buffer object from the ResultBuffer class and returns it to the IP.
When the buffer is full, it throws a BufferOverflowException exception. When all result rows are added to the buffer or when an exception occurs, the IP should call dam_addResultBufferToTable by passing the ResultBuffer object. If the result buffer is no longer required, the IP can call dam_freeResultBuffer to free the ResultBuffer.
long dam_allocResultBuffer(long hstmt)
Parameters for dam_allocResultBuffer
| Parameter | Type | Description |
| INPUT | ||
| hstmt | long | The statement handle. |
| RETURN | ||
| long | The handle to a new rowset. A 0 is returned if a rowset could not be allocated. | |