Lines Matching refs:size
50 NBLog::Timeline::Timeline(size_t size, void *shared)
51 : mSize(roundup(size)), mOwn(shared == NULL),
52 mShared((Shared *) (mOwn ? new char[sharedSize(size)] : shared))
67 size_t NBLog::Timeline::sharedSize(size_t size)
69 return sizeof(Shared) + roundup(size);
79 NBLog::Writer::Writer(size_t size, void *shared)
80 : mSize(roundup(size)), mShared((Shared *) shared), mRear(0), mEnabled(mShared != NULL)
84 NBLog::Writer::Writer(size_t size, const sp<IMemory>& iMemory)
85 : mSize(roundup(size)), mShared(iMemory != 0 ? (Shared *) iMemory->pointer() : NULL),
187 // The Entry could have a method copyTo(ptr, offset, size) to optimize the copy.
219 NBLog::LockedWriter::LockedWriter(size_t size, void *shared)
220 : Writer(size, shared)
274 NBLog::Reader::Reader(size_t size, const void *shared)
275 : mSize(roundup(size)), mShared((const Shared *) shared), mFront(0)
279 NBLog::Reader::Reader(size_t size, const sp<IMemory>& iMemory)
280 : mSize(roundup(size)), mShared(iMemory != 0 ? (const Shared *) iMemory->pointer() : NULL),