wzp
2021-07-28 864986e4cad03f6b9bba9a7e65379db496b62a6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace AsiaINFO.SMS.CMPP2
{
    using System;
 
    public class MessageEventArgs : EventArgs
    {
        private byte[] _BodyData;
        private MessageHeader _Header;
        private byte[] _HeaderData = new byte[12];
 
        public MessageEventArgs(byte[] bytes)
        {
            Buffer.BlockCopy(bytes, 0, this._HeaderData, 0, 12);
            this._Header = new MessageHeader(this._HeaderData);
            this._BodyData = new byte[this._Header.Total_Length - 12];
            Buffer.BlockCopy(bytes, 12, this._BodyData, 0, this._BodyData.Length);
        }
 
        public byte[] BodyData
        {
            get
            {
                return this._BodyData;
            }
        }
 
        public MessageHeader Header
        {
            get
            {
                return this._Header;
            }
        }
 
        public byte[] HeaderData
        {
            get
            {
                return this._HeaderData;
            }
        }
    }
}