public void Serialize(ref JT809MessagePackWriter writer, JT809_0x9500_0x9505 value, IJT809Config config) { writer.WriteBCD(value.AuthenticationCode, 20); writer.WriteStringPadRight(value.AccessPointName, 20); writer.WriteStringPadRight(value.UserName, 49); writer.WriteStringPadRight(value.Password, 22); writer.WriteStringPadRight(value.ServerIP, 32); writer.WriteUInt16(value.TcpPort); writer.WriteUInt16(value.UdpPort); writer.WriteUTCDateTime(value.EndTime); }