Ctor will copy contents of pData to newly allocated asset buffer.
| 98 | public: |
| 99 | // Ctor will copy contents of pData to newly allocated asset buffer. |
| 100 | ResolverAsset(void* pData, size_t size) : _pData(new char[size], std::default_delete<char[]>()) |
| 101 | { |
| 102 | memcpy(_pData.get(), pData, size); |
| 103 | _size = size; |
| 104 | } |
| 105 | |
| 106 | // Get size of asset in bytes. |
| 107 | virtual size_t GetSize() const override { return _size; } |