|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
The encode source: the codecs read the record vector through this. More...
#include <wowlib/db/codec.hpp>
Public Member Functions | |
| virtual | ~RecordSource ()=default |
| virtual std::size_t | size () const =0 |
| virtual std::uint32_t | idOf (std::size_t record) const =0 |
| virtual std::int64_t | getInt (std::size_t record, std::size_t column, std::size_t element) const =0 |
| virtual std::uint32_t | getSlot (std::size_t record, std::size_t column, std::size_t element) const =0 |
| virtual std::string_view | getString (std::size_t record, std::size_t column, std::size_t element) const =0 |
The encode source: the codecs read the record vector through this.
getInt returns a signed-widened integer (range scan, bit packing); getSlot returns the 32-bit pallet/common/None slot (an integer truncated to 32 bits, or a float's bit pattern); getString the string value. The element index follows the RecordSink convention. ErasedRecordSource implements it over a const std::vector<Record>&.
|
virtualdefault |
|
pure virtual |
Implemented in wowlib::db::detail::ColumnRows, and wowlib::db::ErasedRecordSource.
Referenced by wowlib::db::detail::encodeInlineRecord().
|
pure virtual |
Implemented in wowlib::db::detail::ColumnRows, and wowlib::db::ErasedRecordSource.
Referenced by wowlib::db::detail::encodeInlineRecord().
|
pure virtual |
Implemented in wowlib::db::detail::ColumnRows, and wowlib::db::ErasedRecordSource.
Referenced by wowlib::db::detail::encodeInlineRecord(), and wowlib::db::TableCore::validate().
|
pure virtual |
Implemented in wowlib::db::detail::ColumnRows, and wowlib::db::ErasedRecordSource.
Referenced by wowlib::db::TableCore::validate().
|
pure virtual |
Implemented in wowlib::db::detail::ColumnRows, and wowlib::db::ErasedRecordSource.
Referenced by wowlib::db::TableCore::validate(), wowlib::db::writeWdb2(), and wowlib::db::writeWdbc().