Example usage for io.netty.buffer ByteBuf readShort

List of usage examples for io.netty.buffer ByteBuf readShort

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf readShort.

Prototype

public abstract short readShort();

Source Link

Document

Gets a 16-bit short integer at the current readerIndex and increases the readerIndex by 2 in this buffer.

Usage

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnLuaUploadFlagsSerializerVer13.java

public static Set<OFBsnLuaUploadFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {//from  w w w. ja  v a 2s .co  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnUdfAnchorSerializerVer13.java

public static OFBsnUdfAnchor readFrom(ByteBuf bb) throws OFParseError {
    try {/*from w  ww .  j a  v  a  2s  .c om*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFHelloElemTypeSerializerVer13.java

public static OFHelloElemType readFrom(ByteBuf bb) throws OFParseError {
    try {/*from   ww  w  .  ja  va 2  s  .  co  m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFIpv6ExthdrFlagsSerializerVer13.java

public static Set<OFIpv6ExthdrFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {/*from w  w  w  . j a  va2s . co m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFMeterBandTypeSerializerVer13.java

public static OFMeterBandType readFrom(ByteBuf bb) throws OFParseError {
    try {//  w  ww.java 2s.  co  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFMeterFlagsSerializerVer13.java

public static Set<OFMeterFlags> readFrom(ByteBuf bb) throws OFParseError {
    try {/*from   ww w.j  av a 2s. c o  m*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFMeterModCommandSerializerVer13.java

public static OFMeterModCommand readFrom(ByteBuf bb) throws OFParseError {
    try {// w ww  .  java  2s. c  o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFMeterModFailedCodeSerializerVer13.java

public static OFMeterModFailedCode readFrom(ByteBuf bb) throws OFParseError {
    try {/*from www . j a v  a2s  . c om*/
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFTableFeaturePropTypeSerializerVer13.java

public static OFTableFeaturePropType readFrom(ByteBuf bb) throws OFParseError {
    try {//w w  w .  j a  va2 s . c o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

From source file:com.ltln.modules.openflow.core.protocol.ver13.OFTableFeaturesFailedCodeSerializerVer13.java

public static OFTableFeaturesFailedCode readFrom(ByteBuf bb) throws OFParseError {
    try {//from   ww w. ja v a2  s.  c o  m
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}