Naming inconsistencies.
This commit is contained in:
@@ -357,21 +357,21 @@ extern "C" {
|
||||
* the size of the esp/esm if all of the compressed records were
|
||||
* decompressed.
|
||||
*/
|
||||
struct esp_stats espr_stats(SizedBuf esp);
|
||||
ESPStats espr_stats(SizedBuf esp);
|
||||
|
||||
// Calculates the number of formid's in an esm/esp from the stats
|
||||
inline uint32_t espr_formid_count(struct esp_stats stats) {
|
||||
inline uint32_t espr_formid_count(ESPStats stats) {
|
||||
return stats.record_count;
|
||||
}
|
||||
|
||||
// Calculates the number of nodes in the esp/esm from the stats
|
||||
inline uint32_t espr_node_count(struct esp_stats stats) {
|
||||
inline uint32_t espr_node_count(ESPStats stats) {
|
||||
return stats.record_count + stats.group_count;
|
||||
}
|
||||
|
||||
// Calculates the size of a MetaNode tree constructed over the esp/esm
|
||||
// for which the stats were generated.
|
||||
inline size_t espr_tree_size(struct esp_stats stats) {
|
||||
inline size_t espr_tree_size(ESPStats stats) {
|
||||
return sizeof(MetaNode) * ((size_t)espr_node_count(stats) + 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user