/// <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());
 }
 /// <summary>
 /// Method for serializing the command fields </summary>
 public override int[] Serialize()
 {
     SerializeHeader(_serializer);
     _serializer.SerializeEmberKeyType(_keyType);
     return(_serializer.GetPayload());
 }