protected override byte[] GetBodyData() { ByteBuffer buffer = new ByteBuffer(64); buffer.Append(EncodeCString(vMessageID)); buffer.Append(vSourceAddress.GetBytes()); buffer.Append(vDestinationAddress.GetBytes()); return(buffer.ToBytes()); }
protected override byte[] GetBodyData() { byte[] sourceAddrBytes = vSourceAddress.GetBytes(); byte[] esmeAddresBytes = vEsmeAddress.GetBytes(); ByteBuffer buffer = new ByteBuffer(sourceAddrBytes.Length + esmeAddresBytes.Length); buffer.Append(sourceAddrBytes); buffer.Append(esmeAddresBytes); return(buffer.ToBytes()); }