Lines Matching full:memory
28 // An integral representation of bytes of memory.
31 struct Memory {
34 static Memory<kDivisor> FromBytes(size_t bytes) {
36 return Memory<kDivisor>(bytes);
39 Memory() : Value(0u) {}
40 Memory(size_t value) : Value(value) { // NOLINT [runtime/explicit] [5]
52 str = "Memory<" + std::to_string(kDivisor) + '>';
62 std::ostream& operator<<(std::ostream& stream, Memory<kDivisor> memory) {
63 return stream << memory.Value << '*' << kDivisor;
66 using MemoryKiB = Memory<1024>;