/// <summary> /// Serialise the contents of the EZSP structure. </summary> public int[] Serialize(EzspSerializer serializer) { serializer.SerializeEmberKeyStructBitmask(_bitmask); serializer.SerializeEmberKeyType(_type); serializer.SerializeEmberKeyData(_key); serializer.SerializeUInt32(_outgoingFrameCounter); serializer.SerializeUInt32(_incomingFrameCounter); serializer.SerializeUInt8(_sequenceNumber); serializer.SerializeEmberEui64(_partnerEUI64); return(serializer.GetPayload()); }