public override byte[] Encode(BigEndianBitConverter converter) { byte[] idData = converter.GetBytes(SubId); DataString stringData = new DataString(); byte[] textData = stringData.encode(text, converter); byte[] output = new byte[textData.Length + 2]; System.Buffer.BlockCopy(idData, 0, output, 0, 2); System.Buffer.BlockCopy(textData, 0, output, 2, textData.Length); return(output); }