public VBANPacket(VBANPacketHead <T> head, byte[] data) { Head = head; _unfinishedByteArray = new ByteArray(); _unfinishedByteArray.Append(head.Bytes); AttachData(data); }
private Factory(VBANPacketHead <T> .Factory <T, TS> headFactory) { _headFactory = headFactory; }
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) ) { }
internal VBANPacket(VBANPacketHead <T> head) { Head = head; UnfinishedByteArray = new UnfinishedByteArray(MaxSize, true); }
public Builder <T, TS> SetDefaultFactory() { HeadFactory = VBANPacketHead <T> .DefaultFactory <T, TS>(Protocol); return(this); }
internal VBANPacket(VBANPacketHead <T> head) { Head = head; _unfinishedByteArray = new ByteArray(); _unfinishedByteArray.Append(head.Bytes); }