prepare array to be used as a buffer of capacity bytes aligned on given alignment
| 411 | |
| 412 | // prepare array to be used as a buffer of capacity bytes aligned on given alignment |
| 413 | T* getAlignedBuffer(const size_type capacityL, const size_type alignL) |
| 414 | { |
| 415 | static_assert(sizeof(T) == 1, "sizeof(T) != 1"); |
| 416 | |
| 417 | ensureCapacity(capacityL + alignL, false); |
| 418 | count = capacityL + alignL; |
| 419 | return FB_ALIGN(data, alignL); |
| 420 | } |
| 421 | |
| 422 | // clear array and release dinamically allocated memory |
| 423 | void free() |
no test coverage detected