From e8564671356c0cbe443bd1419906c909ad74e75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 14 Nov 2015 00:12:56 -0800 Subject: [PATCH] Updated docs. --- include/bx/allocator.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bx/allocator.h b/include/bx/allocator.h index d8d9274..1190353 100644 --- a/include/bx/allocator.h +++ b/include/bx/allocator.h @@ -61,6 +61,14 @@ namespace bx struct BX_NO_VTABLE AllocatorI { virtual ~AllocatorI() = 0; + + /// Allocated, resizes memory block or frees memory. + /// + /// @param[in] _ptr If _ptr is NULL new block will be allocated. + /// @param[in] _size If _ptr is set, and _size is 0, memory will be freed. + /// @param[in] _align Alignment. + /// @param[in] _file Debug file path info. + /// @param[in] _line Debug file line info. virtual void* realloc(void* _ptr, size_t _size, size_t _align, const char* _file, uint32_t _line) = 0; };