Deleted Added
sdiff udiff text old ( 13940:33cc30e2de52 ) new ( 13947:4cf8087cab09 )
full compact
1/**
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 80 unchanged lines hidden (view full) ---

89CompressionBlk::print() const
90{
91 return csprintf("%s compressed: %d size: %llu decompression latency: %d",
92 SectorSubBlk::print(), isCompressed(), getSizeBits(),
93 getDecompressionLatency());
94}
95
96bool
97SuperBlk::isCompressed() const
98{
99 for (const auto& blk : blks) {
100 if (blk->isValid()) {
101 return static_cast<CompressionBlk*>(blk)->isCompressed();
102 }
103 }
104
105 // An invalid block is seen as compressed
106 return true;
107}