Example usage for io.netty.buffer ByteBuf readUnsignedInt

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

Introduction

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

Prototype

public abstract long readUnsignedInt();

Source Link

Document

Gets an unsigned 32-bit integer at the current readerIndex and increases the readerIndex by 4 in this buffer.

Usage

From source file:org.opendaylight.openflowjava.nx.codec.match.AbstractRegCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntriesBuilder = deserializeHeader(message);
    RegCaseValueBuilder caseBuilder = new RegCaseValueBuilder();
    caseBuilder.setRegValues(new RegValuesBuilder().setValue(message.readUnsignedInt()).build());
    matchEntriesBuilder.setMatchEntryValue(caseBuilder.build());
    return matchEntriesBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.ArpSpaCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    ArpSpaCaseValueBuilder caseBuilder = new ArpSpaCaseValueBuilder();
    caseBuilder.setArpSpaValues(new ArpSpaValuesBuilder().setValue(message.readUnsignedInt()).build());
    matchEntryBuilder.setMatchEntryValue(caseBuilder.build());
    return matchEntryBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.ArpTpaCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntriesBuilder = deserializeHeader(message);
    ArpTpaCaseValueBuilder caseBuilder = new ArpTpaCaseValueBuilder();
    caseBuilder.setArpTpaValues(new ArpTpaValuesBuilder().setValue(message.readUnsignedInt()).build());
    matchEntriesBuilder.setMatchEntryValue(caseBuilder.build());
    return matchEntriesBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.CtStateCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    CtStateCaseValueBuilder caseBuilder = new CtStateCaseValueBuilder();
    CtStateValuesBuilder ctStateValuesBuilder = new CtStateValuesBuilder();
    ctStateValuesBuilder.setCtState(message.readUnsignedInt());
    ctStateValuesBuilder.setMask(message.readUnsignedInt());
    caseBuilder.setCtStateValues(ctStateValuesBuilder.build());
    matchEntryBuilder.setMatchEntryValue(caseBuilder.build());
    matchEntryBuilder.setHasMask(true);//from w  ww . j  ava2 s .co m
    return matchEntryBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.IpDstCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntriesBuilder = deserializeHeader(message);
    IpDstCaseValueBuilder caseBuilder = new IpDstCaseValueBuilder();
    caseBuilder.setIpDstValues(new IpDstValuesBuilder().setValue(message.readUnsignedInt()).build());
    matchEntriesBuilder.setMatchEntryValue(caseBuilder.build());
    return matchEntriesBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.IpSrcCodec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntriesBuilder = deserializeHeader(message);
    IpSrcCaseValueBuilder caseBuilder = new IpSrcCaseValueBuilder();
    caseBuilder.setIpSrcValues(new IpSrcValuesBuilder().setValue(message.readUnsignedInt()).build());
    matchEntriesBuilder.setMatchEntryValue(caseBuilder.build());
    return matchEntriesBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.Nshc1Codec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    Nshc1CaseValueBuilder nsc1CaseValueBuilder = new Nshc1CaseValueBuilder();
    nsc1CaseValueBuilder.setNshc1Values(new Nshc1ValuesBuilder().setNshc(message.readUnsignedInt()).build());
    matchEntryBuilder.setMatchEntryValue(nsc1CaseValueBuilder.build());

    return matchEntryBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.Nshc2Codec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    Nshc2CaseValueBuilder nsc2CaseValueBuilder = new Nshc2CaseValueBuilder();
    nsc2CaseValueBuilder.setNshc2Values(new Nshc2ValuesBuilder().setNshc(message.readUnsignedInt()).build());
    matchEntryBuilder.setMatchEntryValue(nsc2CaseValueBuilder.build());

    return matchEntryBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.Nshc3Codec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    Nshc3CaseValueBuilder nsc3CaseValueBuilder = new Nshc3CaseValueBuilder();
    nsc3CaseValueBuilder.setNshc3Values(new Nshc3ValuesBuilder().setNshc(message.readUnsignedInt()).build());
    matchEntryBuilder.setMatchEntryValue(nsc3CaseValueBuilder.build());

    return matchEntryBuilder.build();
}

From source file:org.opendaylight.openflowjava.nx.codec.match.Nshc4Codec.java

License:Open Source License

@Override
public MatchEntry deserialize(ByteBuf message) {
    MatchEntryBuilder matchEntryBuilder = deserializeHeader(message);
    Nshc4CaseValueBuilder nsc4CaseValueBuilder = new Nshc4CaseValueBuilder();
    nsc4CaseValueBuilder.setNshc4Values(new Nshc4ValuesBuilder().setNshc(message.readUnsignedInt()).build());
    matchEntryBuilder.setMatchEntryValue(nsc4CaseValueBuilder.build());

    return matchEntryBuilder.build();
}