Epok Engine

EPOK RUNTIME

epok::fmv::detail::ac_fill

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

Fills every table slot whose leading bits are `code`.

Belongs to
epok::fmv::detail
Header
fmv_bitstream.hpp
Overloads
1

Declaration

Declaration
constexpr bool ac_fill(uint16_t *table, uint32_t index_bits, uint32_t code, uint32_t length, uint16_t entry)

Fills every table slot whose leading bits are `code`.

ParameterTypeMeaning
tableuint16_t *Not documented; consult the linked header.
index_bitsuint32_tNot documented; consult the linked header.
codeuint32_tNot documented; consult the linked header.
lengthuint32_tNot documented; consult the linked header.
entryuint16_tNot documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "fmv_bitstream.hpp"

// Assume these named values have been initialized with valid data:
// uint16_t * table
// uint32_t index_bits
// uint32_t code
// uint32_t length
// uint16_t entry

auto result = epok::fmv::detail::ac_fill(table, index_bits, code, length, entry);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/fmv_bitstream.hpp:141

Related members