public Header(byte[] rawData) { ver = rawData[0]; OpNumber opNumber = new OpNumber(); size = opNumber.Arr7BitToNum(rawData); }
//private byte ver; /*public Frame(byte ver) * { * name = ""; * size = 0; * storage = ""; * dataPos = 0; * ver = this.ver; * }*/ public Frame(byte[] rawData, byte ver, long pos) { for (byte i = 0; i < 4; i++) { this.name += (char)rawData[i]; } if (ver == 4) { size = opNumber.Arr7BitToNum(rawData); } else { size = opNumber.Arr8BitoNum(rawData); } dataPos = pos + 10; }