Example usage for io.netty.buffer ByteBuf readByte

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

Introduction

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

Prototype

public abstract byte readByte();

Source Link

Document

Gets a byte at the current readerIndex and increases the readerIndex by 1 in this buffer.

Usage

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

public static OFBsnControllerRoleReason readFrom(ByteBuf bb) throws OFParseError {
    try {/*from  ww  w . j  a  v  a 2  s.co  m*/
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnLacpConvergenceStatus readFrom(ByteBuf bb) throws OFParseError {
    try {/*from ww  w  .  ja  v a 2 s .c o  m*/
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static Set<OFBsnLacpState> readFrom(ByteBuf bb) throws OFParseError {
    try {//from  w ww. j a va  2  s. c  om
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnLoglevel readFrom(ByteBuf bb) throws OFParseError {
    try {// w  ww  . j a  v a  2  s  .  com
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnPortCounter readFrom(ByteBuf bb) throws OFParseError {
    try {//from   www.  j  av  a2s  .  c o m
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnPortVxlanMode readFrom(ByteBuf bb) throws OFParseError {
    try {/*www.ja  va  2  s.  c  o  m*/
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnRateUnit readFrom(ByteBuf bb) throws OFParseError {
    try {//from  ww  w  . j a  v  a2s  .  co  m
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

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

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

public static OFBsnVlanCounterConstants readFrom(ByteBuf bb) throws OFParseError {
    try {/* ww  w  .j  a va 2 s. co  m*/
        return ofWireValue(U8.f(bb.readByte()));
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}

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

public static OFBsnVlanCounter readFrom(ByteBuf bb) throws OFParseError {
    try {/*  ww w  . j  ava 2s  .c om*/
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}