List of usage examples for io.netty.buffer ByteBuf readInt
public abstract int readInt();
From source file:com.ltln.modules.openflow.core.protocol.ver11.OFTableConfigSerializerVer11.java
public static Set<OFTableConfig> readFrom(ByteBuf bb) throws OFParseError { try {/*from w w w . j a v a 2 s . c o m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver12.OFControllerRoleSerializerVer12.java
public static OFControllerRole readFrom(ByteBuf bb) throws OFParseError { try {/*from w w w .j a va 2s .com*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver12.OFGroupCapabilitiesSerializerVer12.java
public static Set<OFGroupCapabilities> readFrom(ByteBuf bb) throws OFParseError { try {/* w w w . ja v a 2 s . c o m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnVrfCounterConstantsSerializerVer13.java
public static OFBsnVrfCounterConstants readFrom(ByteBuf bb) throws OFParseError { try {//from w w w . j a va 2 s .com return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFMeterSerializerVer13.java
public static OFMeter readFrom(ByteBuf bb) throws OFParseError { try {/*from w w w . j av a 2s . c om*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFOpticalPortFeaturesSerializerVer14.java
public static Set<OFOpticalPortFeatures> readFrom(ByteBuf bb) throws OFParseError { try {/* ww w .j a v a2s . co m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFPortStatsOpticalFlagsSerializerVer14.java
public static Set<OFPortStatsOpticalFlags> readFrom(ByteBuf bb) throws OFParseError { try {/*from w w w .j a v a2s. co m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFTableModPropEvictionFlagSerializerVer14.java
public static Set<OFTableModPropEvictionFlag> readFrom(ByteBuf bb) throws OFParseError { try {/*from w w w.ja va 2 s . c o m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.minemaarten.signals.network.PacketSpawnParticle.java
License:LGPL
@Override public void fromBytes(ByteBuf buffer) { super.fromBytes(buffer); particleId = buffer.readInt(); dx = buffer.readDouble();/*w w w . j av a 2 s . c om*/ dy = buffer.readDouble(); dz = buffer.readDouble(); }
From source file:com.minestellar.core.network.message.MessageAntennaOnline.java
License:Open Source License
@Override public void fromBytes(ByteBuf buf) { this.isOnline = buf.readBoolean(); this.x = buf.readInt(); this.y = buf.readInt(); this.z = buf.readInt(); }