[DiscordArchive] some1 (me) would expect that dbc is some header and then just pure binary stream of raw data....is t
[DiscordArchive] some1 (me) would expect that dbc is some header and then just pure binary stream of raw data....is t
Archived author: Rymercyble • Posted: 2022-10-29T12:08:49.425000+00:00
Original source
some1 (me) would expect that dbc is some header and then just pure binary stream of raw data....is that too naive vision ?
Archived author: <o> • Posted: 2022-10-29T12:09:11.350000+00:00
Original source
not really, dbc files are very easy to write as a file format, the issue is the column layout
Archived author: <o> • Posted: 2022-10-29T12:09:38.803000+00:00
Original source
since your sql tables will be logical, you have to make very sure that you serialize them correctly back into the raw binary data
Archived author: <o> • Posted: 2022-10-29T12:10:07.076000+00:00
Original source
tools like tswow avoids this since we never actually serialize dbc data, we write directly into those memory buffers
Archived author: <o> • Posted: 2022-10-29T12:10:34.356000+00:00
Original source
so even though we have plenty of the same dbc mistakes as those tools, they don't show up as easily
Archived author: stoneharry • Posted: 2022-10-29T12:11:00.678000+00:00
Original source
DBC is pretty simple format and well documented but a ton of edge cases to handle. Header, records, string block. Need to handle localised strings correctly, some way to determine the structure (interpreting always leads to bugs), and some way to handle the non standard formats (sorted not based on primary key and order is important, no primary key, etc)