Struct star::IndexEntry¶
ClassList > star > IndexEntry
Index entry with block compression support and shape information. More...
#include <stards.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint64_t | block_size |
| std::vector< BlockInfo > | blocks |
| CompressionAlgorithm | compression |
| DataType | datatype |
| bool | dirty |
| bool | is_metadata_block = false |
| uint64_t | position |
| std::vector< size_t > | shape |
| bool | stored_in_metadata = false |
| uint64_t | total_bytes |
Public Functions¶
| Type | Name |
|---|---|
| bool | is_scalar () const |
| size_t | num_elements () const |
| void | print () const |
| void | read (std::istream & is) |
| size_t | serialized_size () const |
| void | write (std::ostream & os) const |
Detailed Description¶
Note:
On-disk portability: this descriptor and its BlockInfo entries serialize their size_t fields as fixed-width little-endian uint64 values via write_u64 / read_u64 (which use the shift-based write_le/read_le, independent of host width and byte order). So .stards files interchange freely across platforms of any pointer width or endianness, including 32-bit wasm32 (size_t == 4 bytes) — the fields are narrowed to/from size_t with explicit static_casts on read. This matches the documented format-v1 layout.
Public Attributes Documentation¶
variable block_size¶
variable blocks¶
variable compression¶
variable datatype¶
variable dirty¶
variable is_metadata_block¶
variable position¶
variable shape¶
variable stored_in_metadata¶
variable total_bytes¶
Public Functions Documentation¶
function is_scalar¶
function num_elements¶
function print¶
function read¶
function serialized_size¶
function write¶
The documentation for this class was generated from the following file StarDS/include/stards.h