LOST
0.0.1
LOST: Open-source Star Tracker
|
#include <databases.hpp>
Public Member Functions | |
MultiDatabase (const unsigned char *buffer) | |
Create a multidatabase from a serialized multidatabase. More... | |
const unsigned char * | SubDatabasePointer (int32_t magicValue) const |
MultiDatabase memory layout: More... | |
Definition at line 104 of file databases.hpp.
|
inlineexplicit |
Create a multidatabase from a serialized multidatabase.
Definition at line 107 of file databases.hpp.
const unsigned char * lost::MultiDatabase::SubDatabasePointer | ( | int32_t | magicValue | ) | const |
MultiDatabase memory layout:
| size | name | description | |---—+-------------—+------------------------------------------—| | 4 | magicValue | unique database identifier | | 4 | flags | [X, X, X, isDouble?] | | 4 | databaseLength | length in bytes (32-bit unsigned) | | n | database | the entire database. 8-byte aligned | | ... | ... | More databases (each has value, length, db) | | 4 | caboose | 4 null bytes indicate the end |
return a pointer to the start of the database type indicated by the magic value, if such a sub-database is present in the database
magicValue |
Definition at line 316 of file databases.cpp.