/// <summary> /// Build a standard header with CRC. The CRC will be /// precomputed and it is assumed no data is present yet. /// </summary> public Header(ProtocolVersion version) { Size = Fit.HeaderWithCRCSize; ProtocolVersion = version.GetVersionByte(); ProfileVersion = Fit.ProfileVersion; DataSize = 0; dataType = new char[] { '.', 'F', 'I', 'T' }; UpdateCRC(); }