Understanding the problem when reading the inputStream using and UnsafeMutablePointer<UInt8> that should point to the memory of a GAPHeader.

For any reason, sizeof(GAPHeader) is returning 16 bytes, when the structure of GAPHeader is composed in fact by 15 bytes. So, inputStream.read is copying 16 bytes, and when we tried to access with an UnsafeMutablePointer<GAPHeader> we got an bad access error.