class Extent
Defined at line 247 of file ../../src/storage/blobfs/format.h
Public Members
static const size_t kBlockOffsetBits
static const uint64_t kBlockOffsetMax
static const uint64_t kBlockOffsetMask
static const size_t kBlockCountBits
static const uint64_t kBlockCountMax
static const uint64_t kBlockCountMask
Public Methods
void Extent ()
Defined at line 257 of file ../../src/storage/blobfs/format.h
void Extent (uint64_t start_block, uint64_t length_blocks)
Create an extent starting at |start_block| blocks, spanning |length_blocks|.
|start_block| must be
<
= kBlockOffsetMax and |length_blocks| must be
<
= kBlockCountMax.
NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
Defined at line 262 of file ../../src/storage/blobfs/format.h
uint64_t Start ()
Get the start block offset this Extent refers to.
Defined at line 268 of file ../../src/storage/blobfs/format.h
void SetStart (uint64_t start_block)
Set the start block offset of this Extent. |start_block| must be
<
= kBlockOffsetMax.
Defined at line 271 of file ../../src/storage/blobfs/format.h
uint64_t Length ()
Get the length, in blocks, of this Extent.
Defined at line 277 of file ../../src/storage/blobfs/format.h
void SetLength (uint64_t length_blocks)
Set the length, in blocks, of this Extent. |length_blocks| must be
<
= kBlockCountMask
Defined at line 280 of file ../../src/storage/blobfs/format.h
bool operator== (const Extent & rhs)
Defined at line 285 of file ../../src/storage/blobfs/format.h