* xmlBufferSetAllocationScheme: * @buf: the buffer to tune * @scheme: allocation scheme to use * * Sets the allocation scheme for this buffer */
| 7208 | * Sets the allocation scheme for this buffer |
| 7209 | */ |
| 7210 | void |
| 7211 | xmlBufferSetAllocationScheme(xmlBufferPtr buf, |
| 7212 | xmlBufferAllocationScheme scheme) { |
| 7213 | if (buf == NULL) { |
| 7214 | return; |
| 7215 | } |
| 7216 | if (buf->alloc == XML_BUFFER_ALLOC_IO) return; |
| 7217 | if ((scheme == XML_BUFFER_ALLOC_DOUBLEIT) || |
| 7218 | (scheme == XML_BUFFER_ALLOC_EXACT) || |
| 7219 | (scheme == XML_BUFFER_ALLOC_HYBRID)) |
| 7220 | buf->alloc = scheme; |
| 7221 | } |
| 7222 | |
| 7223 | /** |
| 7224 | * xmlBufferFree: |
no outgoing calls
no test coverage detected