Lines Matching refs:mBuffer
45 if (other.mBuffer) { // could have got moved out in AlignedBuf()
46 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
61 mBuffer = other.mBuffer;
64 other.mBuffer = nullptr;
70 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out in ~AlignedBuf()
89 T* data() { return mBuffer; } in data()
91 T& operator[](size_t index) { return mBuffer[index]; }
93 const T& operator[](size_t index) const { return mBuffer[index]; }
96 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
107 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl()
108 mBuffer = static_cast<T*>(reallocImpl(mBuffer, newSizeBytes)); in resizeImpl()
109 std::copy(temp.data(), temp.data() + keepSize, mBuffer); in resizeImpl()
111 if (mBuffer) freeImpl(mBuffer); in resizeImpl()
112 mBuffer = nullptr; in resizeImpl()
144 T* mBuffer = nullptr; variable