Accessing Blender's DNA Mesh struct via as_pointer()
I managed to figure this issue out. It made a mistake using a Mesh structure from 2.9 Blender sources instead of 2.82 which is the Blender build I am running this code on. The mesh.as_pointer() does give a valid pointer to the DNA Mesh struct right away.