mirror of
https://github.com/typesense/typesense.git
synced 2025-05-17 12:12:35 +08:00
25 lines
473 B
C++
25 lines
473 B
C++
#include "array_base.h"
|
|
|
|
uint32_t* array_base::uncompress(uint32_t len) const {
|
|
uint32_t actual_len = std::max(len, length);
|
|
uint32_t *out = new uint32_t[actual_len];
|
|
for_uncompress(in, out, length);
|
|
return out;
|
|
}
|
|
|
|
uint32_t array_base::getSizeInBytes() {
|
|
return size_bytes;
|
|
}
|
|
|
|
uint32_t array_base::getLength() const {
|
|
return length;
|
|
}
|
|
|
|
uint32_t array_base::getMin() const {
|
|
return min;
|
|
}
|
|
|
|
uint32_t array_base::getMax() const {
|
|
return max;
|
|
}
|