* xmlBufGetAllocationScheme: * @buf: the buffer * * Get the buffer allocation scheme * * Returns the scheme or -1 in case of error */
| 221 | * Returns the scheme or -1 in case of error |
| 222 | */ |
| 223 | int |
| 224 | xmlBufGetAllocationScheme(xmlBufPtr buf) { |
| 225 | if (buf == NULL) { |
| 226 | return(-1); |
| 227 | } |
| 228 | return(buf->alloc); |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * xmlBufSetAllocationScheme: |