@override Pointer<T> allocate<T>(int size) { final ptr = _memoryPool.allocate(size); _allocatedPointers.add(ptr); return Pointer(ptr.addr, size); }