| 64 | public: |
| 65 | static const bool kNeedFree = true; |
| 66 | void* Malloc(size_t size) { |
| 67 | if (size) // behavior of malloc(0) is implementation defined. |
| 68 | return BinaryNinjaCore::bn_malloc<CrtAllocator>(size); |
| 69 | else |
| 70 | return NULL; // standardize to returning NULL. |
| 71 | } |
| 72 | void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { |
| 73 | (void)originalSize; |
| 74 | if (newSize == 0) { |
no outgoing calls
no test coverage detected