Example #1
0
        public byte[] GetBytes(SmppEncodingService smppEncodingService)
        {
            ByteBuffer buffer = new ByteBuffer(32);

            buffer.Append(smppEncodingService.GetBytesFromInt(vCommandLength));
            buffer.Append(smppEncodingService.GetBytesFromInt((uint)vCommandType));
            buffer.Append(smppEncodingService.GetBytesFromInt((uint)vErrorCode));
            buffer.Append(smppEncodingService.GetBytesFromInt(vSequenceNumber));
            return(buffer.ToBytes());
        }