mirror of https://github.com/bsnes-emu/bsnes.git
Fix vector<T>::acquire() arguments
This commit is contained in:
parent
55e05c89c2
commit
64d484476d
|
@ -45,7 +45,7 @@ struct vector_base {
|
||||||
|
|
||||||
//memory.hpp
|
//memory.hpp
|
||||||
auto reset() -> void;
|
auto reset() -> void;
|
||||||
auto acquire(const T* data, uint64_t size, uint64_t capacity = 0) -> void;
|
auto acquire(T* data, uint64_t size, uint64_t capacity = 0) -> void;
|
||||||
auto release() -> T*;
|
auto release() -> T*;
|
||||||
|
|
||||||
auto reserveLeft(uint64_t capacity) -> bool;
|
auto reserveLeft(uint64_t capacity) -> bool;
|
||||||
|
|
|
@ -19,7 +19,7 @@ template<typename T> auto vector<T>::reset() -> void {
|
||||||
|
|
||||||
//acquire ownership of allocated memory
|
//acquire ownership of allocated memory
|
||||||
|
|
||||||
template<typename T> auto vector<T>::acquire(const T* data, uint64_t size, uint64_t capacity) -> void {
|
template<typename T> auto vector<T>::acquire(T* data, uint64_t size, uint64_t capacity) -> void {
|
||||||
reset();
|
reset();
|
||||||
_pool = data;
|
_pool = data;
|
||||||
_size = size;
|
_size = size;
|
||||||
|
|
Loading…
Reference in New Issue