Lines Matching refs:mBuffer
43 if (other.mBuffer) { // could have got moved out in AlignedBuf()
44 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
59 mBuffer = other.mBuffer;
62 other.mBuffer = nullptr;
68 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out in ~AlignedBuf()
87 T* data() { return mBuffer; } in data()
89 T& operator[](size_t index) { return mBuffer[index]; }
91 const T& operator[](size_t index) const { return mBuffer[index]; }
94 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
105 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl()
106 mBuffer = static_cast<T*>(reallocImpl(mBuffer, newSizeBytes)); in resizeImpl()
107 std::copy(temp.data(), temp.data() + keepSize, mBuffer); in resizeImpl()
109 if (mBuffer) freeImpl(mBuffer); in resizeImpl()
110 mBuffer = nullptr; in resizeImpl()
142 T* mBuffer = nullptr; variable