public OfpTableStats(Stream stream) { BeBinaryReader br = new BeBinaryReader(stream, Encoding.ASCII, true); br.Parse(out TableId); br.ReadBytes(3); //PAD 3 br.Parse(out Name, OFP_MAX_TABLE_NAME_LEN); Wildcards = new OfpWildcards(stream); br.Parse(out MaxEntries); br.Parse(out ActiveCount); br.Parse(out LookupCount); br.Parse(out MatchedCount); }
public static OfpWildcards Parse(this BeBinaryReader br, out OfpWildcards b) { b = new OfpWildcards(br.ReadUInt32()); return(b); }
/// <summary> /// OfpWildcards as uint /// </summary> /// <param name="wildcards"></param> public void Write(OfpWildcards wildcards) { bw.Write(wildcards.Value); }