Correctly read / write vertex header from / to main memory