| 435 | } |
| 436 | |
| 437 | TSIOBuffer |
| 438 | TSIOBufferSizedCreate(TSIOBufferSizeIndex index) |
| 439 | { |
| 440 | sdk_assert((index >= TS_IOBUFFER_SIZE_INDEX_128) && (index <= TS_IOBUFFER_SIZE_INDEX_32K)); |
| 441 | |
| 442 | MIOBuffer *b = new_MIOBuffer(index); |
| 443 | |
| 444 | // TODO: Should remove this when memory allocations can't fail. |
| 445 | sdk_assert(sdk_sanity_check_iocore_structure(b) == TS_SUCCESS); |
| 446 | return reinterpret_cast<TSIOBuffer>(b); |
| 447 | } |
| 448 | |
| 449 | void |
| 450 | TSIOBufferDestroy(TSIOBuffer bufp) |