class JournalHeaderView
Defined at line 19 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
Public Methods
uint64_t TargetBlock (uint32_t index)
Returns the block number where |index| block in the payload will be written to.
Defined at line 34 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
void SetTargetBlock (uint32_t index, uint64_t target)
Sets |index| block in the payload to be written to |target| block.
Defined at line 40 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
const uint64_t * TargetBlockPtr (uint32_t index)
Returns pointer to memory where target block for |index| is stored.
TODO(https://fxbug.dev/42118623).
Defined at line 47 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
void JournalHeaderView (std::span<uint8_t> block)
Creates header view created from the block. This may or may not be a valid header. Useful when
inspecting a disk. Asserts on finding |block| to be at smaller than kJournalBlockSize bytes.
Defined at line 49 of file ../../src/storage/lib/vfs/cpp/journal/header_view.cc
bool EscapedBlock (uint32_t index)
Returns true if target block at |index| is escaped.
Defined at line 53 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
fpromise::result<JournalHeaderView, zx_status_t> Create (std::span<uint8_t> block, uint64_t sequence_number)
Returns HeaderView on finding a valid journal entry header in |block|.
Defined at line 69 of file ../../src/storage/lib/vfs/cpp/journal/header_view.cc
void JournalHeaderView (std::span<uint8_t> block, uint64_t payload_blocks, uint64_t sequence_number)
Initializes |block| with valid header and sets payload blocks and sequence number. Asserts on
finding |block| to be at smaller than kJournalBlockSize bytes.
Defined at line 54 of file ../../src/storage/lib/vfs/cpp/journal/header_view.cc
void SetEscapedBlock (uint32_t index, bool flag)
Sets escape flag for target block at |index|.
Defined at line 58 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
uint64_t PayloadBlocks ()
Defined at line 66 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
const uint64_t * PayloadBlocksPtr ()
TODO(https://fxbug.dev/42118623).
Defined at line 69 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
JournalObjectType ObjectType ()
Defined at line 70 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h
uint64_t SequenceNumber ()
Defined at line 72 of file ../../src/storage/lib/vfs/cpp/journal/header_view.h