vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::BitReader Class Reference

Reads back what a BitWriter wrote, in the same order. More...

#include <bit_stream.h>

Public Member Functions

uint64_t u64 ()
 Read back the pair u64 wrote, high half first.
bool failed () const
 True when a read ran past the end; sticky once set.

Detailed Description

Reads back what a BitWriter wrote, in the same order.

Failure is sticky, so a decoder tests once when it is done.

Member Function Documentation

◆ u64()

uint64_t Vkm::Engine::BitReader::u64 ( )
inline

Read back the pair u64 wrote, high half first.

Into named locals: operand evaluation order is unspecified, so two reads in one expression could differ between builds.

Returns
The value; zero when the reader had already failed.

The documentation for this class was generated from the following file: