protected override void UnmarshalIntl(byte[] buffer, int offset) { FullTime = BitConverter.ToInt32(buffer, offset); offset += 4; NumberOfSatellites = buffer[offset++]; PositionMode = ByteHandling.ParseEnum(buffer[offset++], PositionVelocityOrientationMode.Unknown); VelocityMode = ByteHandling.ParseEnum(buffer[offset++], PositionVelocityOrientationMode.Unknown); OrientationMode = ByteHandling.ParseEnum(buffer[offset++], PositionVelocityOrientationMode.Unknown); }
/// <summary> /// Sets this <see cref="StatusChannel0"/> instance logically equal to the specified /// <paramref name="source"/> instance /// </summary> /// <param name="source">The source <see cref="StatusChannel0"/> instance to copy.</param> public void Copy(StatusChannel0 source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } FullTime = source.FullTime; NumberOfSatellites = source.NumberOfSatellites; PositionMode = source.PositionMode; VelocityMode = source.VelocityMode; OrientationMode = source.OrientationMode; }