3 ms·
I would not be surprised if somethings may break if there is a discrepancy between the structs and the memory layout. Stranger things have been seen. If people
by AtNightWeCode 5y ago
I would not be surprised if somethings may break if there is a discrepancy between the structs and the memory layout. Stranger things have been seen. If people followed best practices, there would not be a problem in the first place. How to work with and check memory alignment is very much a known area. …and I do believe there is linter for this in Go as well.