public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError { try { return ofWireValue(bb.readShort()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.2: " + e); } } return wireValue; }
public static Set<OFStatsRequestFlags> ofWireValue(short val) { EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class); if((val & REQ_MORE_VAL) != 0) set.add(OFStatsRequestFlags.REQ_MORE); return Collections.unmodifiableSet(set); }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { case REQ_MORE: wireValue |= REQ_MORE_VAL; break; default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.3: " + e); } } return wireValue; }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.0: " + e); } } return wireValue; }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.1: " + e); } } return wireValue; }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { case REQ_MORE: wireValue |= REQ_MORE_VAL; break; default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.4: " + e); } } return wireValue; }
public static Set<OFStatsRequestFlags> readFrom(ByteBuf bb) throws OFParseError { try { return ofWireValue(bb.readShort()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
public static short toWireValue(Set<OFStatsRequestFlags> set) { short wireValue = 0; for(OFStatsRequestFlags e: set) { switch(e) { case REQ_MORE: wireValue |= REQ_MORE_VAL; break; default: throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.5: " + e); } } return wireValue; }
protected void sendPortDescRequest() { mainConnection.write(factory.portDescStatsRequest(ImmutableSet.<OFStatsRequestFlags>of())); }
public static void writeTo(ChannelBuffer bb, Set<OFStatsRequestFlags> set) { bb.writeShort(toWireValue(set)); }
public static void putTo(Set<OFStatsRequestFlags> set, PrimitiveSink sink) { sink.putShort(toWireValue(set)); }