sizeof in swift (General->Swift)Say you have a struct:struct Thingie { let blah: Uint8 let greeble: UInt8 let splunge: UInt8 }Get the sizeof vialet packetLength = MemoryLayoutThat's the packed size. To account for alignment/padding, use stride..size