19 nassertr(n >= 0 && n < (
int)_live_entries.size(), 0);
20 return _live_entries[n]._begin;
29 nassertr(n >= 0 && n < (
int)_live_entries.size(), 0);
30 return _live_entries[n]._end;
38 return _catalog->get_num_entries();
46 return _catalog->get_entry(n);
56 return _catalog->find_entry_by_name(name);
66 return _catalog->find_entry_by_field(field);
74 return _entries.size();
82 nassertr(n >= 0 && n < (
int)_entries.size(), _entries[0]);
int find_entry_by_name(const std::string &name) const
Returns the index number of the entry with the indicated name, or -1 if no entry has the indicated na...
int find_entry_by_field(const DCPackerInterface *field) const
Returns the index number of the entry with the indicated field, or -1 if no entry has the indicated f...
int get_num_entries() const
Returns the number of entries in the catalog.
int get_num_entries() const
Returns the number of entries in the catalog.
size_t get_end(int n) const
Returns the end of the indicated field (the byte position of the first following field) within the li...
const Entry & get_entry(int n) const
Returns the nth entry in the catalog.
size_t get_begin(int n) const
Returns the beginning of the indicated field within the live data.
const Entry & get_entry(int n) const
Returns the nth entry in the catalog.
This defines the internal interface for packing values into a DCField.