public override byte[] GetBytes() {
base._length=7;
byte[] buf=base.GetBytes();
int ptr=buf[0]==1?4:2;
buf[ptr++]=(byte)(TopicId>>8);
buf[ptr++]=(byte)(TopicId);
buf[ptr++]=(byte)(MessageId>>8);
buf[ptr++]=(byte)(MessageId);
buf[ptr]=(byte)RetCode;
return buf;
}