public override void Parse(byte[] data, uint offset) { offset *= 8; dstAddr = BitHelper.Extract48(data, offset + 0); srcAddr = BitHelper.Extract48(data, offset + 48); etherType = BitHelper.Extract16(data, offset + 96); length = 112; setValid(); }
public void Extract(byte[] data) { dstAddr = BitHelper.Extract48(data, offset); srcAddr = BitHelper.Extract48(data, offset + 5); etherType = BitHelper.Extract16(data, offset + 10); }