public SmppDeliverSmReq(ByteBuilder bb) { _Header = new SmppHeader(bb); int startPosition = 0x10; _Body = new BodyPdu(bb, ref startPosition); if (bb.Count > startPosition) _Tlv = new SmppTlv(bb, startPosition); }
internal SmppBindRes(ByteBuilder bb) { int startPosition = 0x10; _Header = new SmppHeader(bb); if (bb.Count > 0x10) _Body = new BodyPdu(bb, ref startPosition); if (bb.Count > startPosition) _Tlv = new SmppTlv(bb, startPosition); }
internal SmppDeliverSmRes(ByteBuilder bb) { int startPosition = 0x10; _Header = new SmppHeader(bb); _Body = new BodyPdu(bb, ref startPosition); _Tlv = new SmppTlv(bb, startPosition); }
internal SmppSubmitSmRes(ByteBuilder bb) { if (bb.Count >= 0x10) { _Header = new SmppHeader(bb); if (bb.Count != 0x10) { int lastBytePosition = 0x10; _Body = new BodyPdu(bb, ref lastBytePosition); if (bb.Count >= lastBytePosition) _Tlv = new SmppTlv(bb, lastBytePosition); } } }
public SmppDeliverSmReq(ByteBuilder bb) { _Header = new SmppHeader(bb); int startPosition = 0x10; _Body = new BodyPdu(bb, ref startPosition); if (bb.Count > startPosition) { _Tlv = new SmppTlv(bb, startPosition); } }
internal SmppBindRes(ByteBuilder bb) { int startPosition = 0x10; _Header = new SmppHeader(bb); if (bb.Count > 0x10) { _Body = new BodyPdu(bb, ref startPosition); } if (bb.Count > startPosition) { _Tlv = new SmppTlv(bb, startPosition); } }
internal SmppSubmitSmRes(ByteBuilder bb) { if (bb.Count >= 0x10) { _Header = new SmppHeader(bb); if (bb.Count != 0x10) { int lastBytePosition = 0x10; _Body = new BodyPdu(bb, ref lastBytePosition); if (bb.Count >= lastBytePosition) { _Tlv = new SmppTlv(bb, lastBytePosition); } } } }
internal static byte[] GetPduByteArray(ref SmppHeader Header, ISmppBasic Body, SmppTlv Tlv) { byte[] c = null; byte[] buffer2 = null; byte[] arrayObj = null; buffer2 = Body.ToByteArray(); Header.CommandLength = 0x10 + buffer2.Length; if (Tlv != null) { arrayObj = Tlv.ToByteArray(); Header.CommandLength += arrayObj.Length; } c = Header.ToByteArray(); var builder = new ByteBuilder((c.Length + buffer2.Length) + GetArrayLength(arrayObj)); builder.AddRange(c); builder.AddRange(buffer2); if (arrayObj != null) builder.AddRange(arrayObj); return builder.ToArray(); }
public SmppSubmitSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 4, 0, 0), Body, Tlv) {}
public SmppDataSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) { _Header = Header; _Body = Body; _Tlv = Tlv; }
public SmppDataSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 0x103, 0, 0), Body, Tlv) { }
internal SmppSubmitSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) { _Header = Header; _Body = Body; _Tlv = Tlv; }
public SmppSubmitSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 4, 0, 0), Body, Tlv) { }
internal SmppSubmitSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) { _Header = Header; _Body = Body; _Tlv = Tlv; }
internal SmppDeliverSmRes(ByteBuilder bb) { int startPosition = 0x10; _Header = new SmppHeader(bb); _Body = new BodyPdu(bb, ref startPosition); _Tlv = new SmppTlv(bb, startPosition); }
public SmppDataSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) { _Header = Header; _Body = Body; _Tlv = Tlv; }
public SmppDataSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 0x103, 0, 0), Body, Tlv) {}