Frage

I know that in general sqlite is supposed to be platform independent -> https://www.sqlite.org/onefile.html . In my case I'd like to save 2dimensional c/c++ arrays into the db as blobs as there is no other way to do this. But since the value-types of the arrays as blobs are opaque to sqlite, the db has no chance to treat them platform independent and are therefore specific to one architecture, right?

War es hilfreich?

Lösung

As user3477950 said, SQLite cannot know what BLOBs contain; to it, they're just an array of bytes. No conversion is done regarding endianness, representation, padding, etc.; the bytes it stores are exactly what you give it.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top