Lines Matching refs:capacity

22 Memory::Memory(size_t capacity, std::shared_ptr<uint8_t> bufData, size_t align, MemoryType type)  in Memory()  argument
23 : memoryType(type), capacity(capacity), alignment(align), in Memory()
28 Memory::Memory(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align, MemoryType type… in Memory() argument
29 : memoryType(type), capacity(capacity), alignment(align), offset(0), in Memory()
35 size_t allocSize = align ? (capacity + align - 1) : capacity; in Memory()
48 return capacity; in GetCapacity()
62 start = std::min(position, capacity); in Write()
64 size_t length = std::min(writeSize, capacity - start); in Write()
89 if (position > capacity) { in GetReadOnlyData()
97 if (position + estimatedWriteSize > capacity) { in GetWritableAddr()
107 if (position + realWriteSize > capacity) { in UpdateDataSize()
132 std::shared_ptr<Buffer> Buffer::CreateDefaultBuffer(size_t capacity, std::shared_ptr<Allocator> all… in CreateDefaultBuffer() argument
135 … std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in CreateDefaultBuffer()
140 std::shared_ptr<Memory> Buffer::WrapMemory(uint8_t* data, size_t capacity, size_t size) in WrapMemory() argument
142 …auto memory = std::shared_ptr<Memory>(new Memory(capacity, std::shared_ptr<uint8_t>(data, [](void*… in WrapMemory()
148 std::shared_ptr<Memory> Buffer::WrapMemoryPtr(std::shared_ptr<uint8_t> data, size_t capacity, size_… in WrapMemoryPtr() argument
150 auto memory = std::shared_ptr<Memory>(new Memory(capacity, data)); in WrapMemoryPtr()
156 std::shared_ptr<Memory> Buffer::AllocMemory(std::shared_ptr<Allocator> allocator, size_t capacity, … in AllocMemory() argument
162 memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in AllocMemory()