List of usage examples for io.netty.buffer ByteBuf readInt
public abstract int readInt();
From source file:com.lothrazar.cyclicmagic.item.enderbook.PacketDeleteWaypoint.java
License:Open Source License
@Override public void fromBytes(ByteBuf buf) { this.slot = buf.readInt(); }
From source file:com.lothrazar.cyclicmagic.playerupgrade.PacketSyncExtendedInventory.java
License:Open Source License
@Override public void fromBytes(ByteBuf buffer) { slot = buffer.readByte(); playerId = buffer.readInt(); itemStack = ByteBufUtils.readItemStack(buffer); }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFBsnVportL2GreFlagsSerializerVer10.java
public static Set<OFBsnVportL2GreFlags> readFrom(ByteBuf bb) throws OFParseError { try {/*from w ww . j av a2 s.com*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFCapabilitiesSerializerVer10.java
public static Set<OFCapabilities> readFrom(ByteBuf bb) throws OFParseError { try {/* w w w . j ava2 s. c o m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFFlowWildcardsSerializerVer10.java
public static Set<OFFlowWildcards> readFrom(ByteBuf bb) throws OFParseError { try {/*from www.j av a2s . c om*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFNiciraControllerRoleSerializerVer10.java
public static OFNiciraControllerRole readFrom(ByteBuf bb) throws OFParseError { try {// ww w .j a va 2s.c o m return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFPortConfigSerializerVer10.java
public static Set<OFPortConfig> readFrom(ByteBuf bb) throws OFParseError { try {/* ww w . j a v a2 s .co m*/ return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFPortFeaturesSerializerVer10.java
public static Set<OFPortFeatures> readFrom(ByteBuf bb) throws OFParseError { try {// ww 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.ver10.OFPortStateSerializerVer10.java
public static Set<OFPortState> readFrom(ByteBuf bb) throws OFParseError { try {//from ww w. j a v a 2 s . co m return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }
From source file:com.ltln.modules.openflow.core.protocol.ver10.OFQueuePropertiesSerializerVer10.java
public static OFQueueProperties readFrom(ByteBuf bb) throws OFParseError { try {//from w w w. j ava2 s . co m return ofWireValue(bb.readInt()); } catch (IllegalArgumentException e) { throw new OFParseError(e); } }