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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top