public MsRegister(byte[] buf, int start, int end) : base(buf, start, end) { int ptr=buf[start+0]==1?start+4:start+2; TopicId=(ushort)((buf[ptr++]<<8) | buf[ptr++]); MessageId=(ushort)((buf[ptr++]<<8) | buf[ptr++]); TopicPath=enc.GetString(buf, ptr, _length+start-ptr); } public override byte[] GetBytes() {