mirror of
https://github.com/typesense/typesense.git
synced 2025-05-20 21:52:23 +08:00
17 lines
347 B
C++
17 lines
347 B
C++
#include "array_base.h"
|
|
|
|
uint32_t* array_base::uncompress(uint32_t len) {
|
|
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() {
|
|
return length;
|
|
}
|