예제 #1
0
 public VBANPacket(VBANPacketHead <T> head, byte[] data)
 {
     Head = head;
     _unfinishedByteArray = new ByteArray();
     _unfinishedByteArray.Append(head.Bytes);
     AttachData(data);
 }
예제 #2
0
 private Factory(VBANPacketHead <T> .Factory <T, TS> headFactory)
 {
     _headFactory = headFactory;
 }
예제 #3
0
 public Decoded(byte[] data) : base(
         VBANPacketHead <T> .Decode(Util.SubArray(data, 0, VBANPacketHead <T> .Size)),
         Util.SubArray(data, VBANPacketHead <T> .Size + 1, VBANPacket <T> .MaxSize)
         )
 {
 }
예제 #4
0
 internal VBANPacket(VBANPacketHead <T> head)
 {
     Head = head;
     UnfinishedByteArray = new UnfinishedByteArray(MaxSize, true);
 }
예제 #5
0
                public Builder <T, TS> SetDefaultFactory()
                {
                    HeadFactory = VBANPacketHead <T> .DefaultFactory <T, TS>(Protocol);

                    return(this);
                }
예제 #6
0
 internal VBANPacket(VBANPacketHead <T> head)
 {
     Head = head;
     _unfinishedByteArray = new ByteArray();
     _unfinishedByteArray.Append(head.Bytes);
 }