Home | History | Annotate | Download | only in base

Lines Matching refs:AlignedBuf

33 class AlignedBuf {
35 explicit AlignedBuf(size_t size) {
37 "AlignedBuf only supports power-of-2 aligments.");
41 AlignedBuf(const AlignedBuf& other) : AlignedBuf(other.mSize) {
47 AlignedBuf& operator=(const AlignedBuf& other) {
49 AlignedBuf tmp(other);
55 AlignedBuf(AlignedBuf&& other) { *this = std::move(other); }
57 AlignedBuf& operator=(AlignedBuf&& other) {
67 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out
79 "AlignedBuf can only resize trivially copyable values");
92 bool operator==(const AlignedBuf& other) const {