当前位置: 首页>>代码示例>>Java>>正文


Java PrimitiveSink.putInt方法代码示例

本文整理汇总了Java中com.google.common.hash.PrimitiveSink.putInt方法的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveSink.putInt方法的具体用法?Java PrimitiveSink.putInt怎么用?Java PrimitiveSink.putInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.common.hash.PrimitiveSink的用法示例。


在下文中一共展示了PrimitiveSink.putInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFlowDeleteStrictVer14 message, PrimitiveSink sink) {
    // fixed value property version = 5
    sink.putByte((byte) 0x5);
    // fixed value property type = 14
    sink.putByte((byte) 0xe);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    message.cookie.putTo(sink);
    message.cookieMask.putTo(sink);
    message.tableId.putTo(sink);
    // fixed value property command = 4
    sink.putShort((short) 0x4);
    sink.putInt(message.idleTimeout);
    sink.putInt(message.hardTimeout);
    sink.putInt(message.priority);
    message.bufferId.putTo(sink);
    message.outPort.putTo(sink);
    message.outGroup.putTo(sink);
    OFFlowModFlagsSerializerVer14.putTo(message.flags, sink);
    sink.putInt(message.importance);
    message.match.putTo(sink);
    FunnelUtils.putList(message.instructions, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:25,代码来源:OFFlowDeleteStrictVer14.java

示例2: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduRxReplyVer12 message, PrimitiveSink sink) {
    // fixed value property version = 3
    sink.putByte((byte) 0x3);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // fixed value property length = 25
    sink.putShort((short) 0x19);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x22L
    sink.putInt(0x22);
    sink.putLong(message.status);
    message.portNo.putTo(sink);
    sink.putShort(message.slotNum);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:18,代码来源:OFBsnPduRxReplyVer12.java

示例3: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGetMirroringRequestVer14 message, PrimitiveSink sink) {
    // fixed value property version = 5
    sink.putByte((byte) 0x5);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // fixed value property length = 20
    sink.putShort((short) 0x14);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x4L
    sink.putInt(0x4);
    sink.putShort(message.reportMirrorPorts);
    // skip pad (3 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:17,代码来源:OFBsnGetMirroringRequestVer14.java

示例4: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBucketVer14 message, PrimitiveSink sink) {
    // FIXME: skip funnel of length
    sink.putInt(message.weight);
    message.watchPort.putTo(sink);
    message.watchGroup.putTo(sink);
    // skip pad (4 bytes)
    FunnelUtils.putList(message.actions, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:10,代码来源:OFBucketVer14.java

示例5: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFNiciraControllerRoleRequestVer10 message, PrimitiveSink sink) {
    // fixed value property version = 1
    sink.putByte((byte) 0x1);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // fixed value property length = 20
    sink.putShort((short) 0x14);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x2320L
    sink.putInt(0x2320);
    // fixed value property subtype = 0xaL
    sink.putInt(0xa);
    OFNiciraControllerRoleSerializerVer10.putTo(message.role, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:16,代码来源:OFNiciraControllerRoleRequestVer10.java

示例6: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFActionIdNiciraDecTtlVer14 message, PrimitiveSink sink) {
    // fixed value property type = 65535
    sink.putShort((short) 0xffff);
    // fixed value property length = 10
    sink.putShort((short) 0xa);
    // fixed value property experimenter = 0x2320L
    sink.putInt(0x2320);
    // fixed value property subtype = 0x12
    sink.putShort((short) 0x12);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:12,代码来源:OFActionIdNiciraDecTtlVer14.java

示例7: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVirtualPortRemoveReplyVer13 message, PrimitiveSink sink) {
    // fixed value property version = 4
    sink.putByte((byte) 0x4);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // fixed value property length = 20
    sink.putShort((short) 0x14);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x1aL
    sink.putInt(0x1a);
    sink.putLong(message.status);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:16,代码来源:OFBsnVirtualPortRemoveReplyVer13.java

示例8: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFOxmBsnUdf6MaskedVer13 message, PrimitiveSink sink) {
    // fixed value property typeLen = 0x31d08L
    sink.putInt(0x31d08);
    message.value.putTo(sink);
    message.mask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFOxmBsnUdf6MaskedVer13.java

示例9: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFInstructionBsnDisableSrcMacCheckVer13 message, PrimitiveSink sink) {
    // fixed value property type = 65535
    sink.putShort((short) 0xffff);
    // fixed value property length = 16
    sink.putShort((short) 0x10);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x0L
    sink.putInt(0x0);
    // skip pad (4 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:13,代码来源:OFInstructionBsnDisableSrcMacCheckVer13.java

示例10: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVirtualPortRemoveReplyVer12 message, PrimitiveSink sink) {
    // fixed value property version = 3
    sink.putByte((byte) 0x3);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // fixed value property length = 20
    sink.putShort((short) 0x14);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x1aL
    sink.putInt(0x1a);
    sink.putLong(message.status);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:16,代码来源:OFBsnVirtualPortRemoveReplyVer12.java

示例11: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFOxmIpv6DstMaskedVer14 message, PrimitiveSink sink) {
    // fixed value property typeLen = 0x80003720L
    sink.putInt((int) 0x80003720);
    message.value.putTo(sink);
    message.mask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFOxmIpv6DstMaskedVer14.java

示例12: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFInstructionBsnRequireVlanXlateVer13 message, PrimitiveSink sink) {
    // fixed value property type = 65535
    sink.putShort((short) 0xffff);
    // fixed value property length = 16
    sink.putShort((short) 0x10);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x8L
    sink.putInt(0x8);
    // skip pad (4 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:13,代码来源:OFInstructionBsnRequireVlanXlateVer13.java

示例13: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFOxmTcpSrcMaskedVer13 message, PrimitiveSink sink) {
    // fixed value property typeLen = 0x80001b04L
    sink.putInt((int) 0x80001b04);
    message.value.putTo(sink);
    message.mask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFOxmTcpSrcMaskedVer13.java

示例14: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFOxmIpv6NdTargetMaskedVer12 message, PrimitiveSink sink) {
    // fixed value property typeLen = 0x80003f20L
    sink.putInt((int) 0x80003f20);
    message.value.putTo(sink);
    message.mask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFOxmIpv6NdTargetMaskedVer12.java

示例15: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFOxmIpv6SrcMaskedVer14 message, PrimitiveSink sink) {
    // fixed value property typeLen = 0x80003520L
    sink.putInt((int) 0x80003520);
    message.value.putTo(sink);
    message.mask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFOxmIpv6SrcMaskedVer14.java


注:本文中的com.google.common.hash.PrimitiveSink.putInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。