Lines Matching refs:mBuffer
42 if (other.mBuffer) { // could have got moved out in AlignedBuf()
43 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
58 mBuffer = other.mBuffer;
61 other.mBuffer = nullptr;
67 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out in ~AlignedBuf()
86 T* data() { return mBuffer; } in data()
88 T& operator[](size_t index) { return mBuffer[index]; }
90 const T& operator[](size_t index) const { return mBuffer[index]; }
93 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
104 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl()
105 mBuffer = static_cast<T*>(reallocImpl(mBuffer, newSizeBytes)); in resizeImpl()
106 std::copy(temp.data(), temp.data() + keepSize, mBuffer); in resizeImpl()
108 if (mBuffer) freeImpl(mBuffer); in resizeImpl()
109 mBuffer = nullptr; in resizeImpl()
141 T* mBuffer = nullptr; variable