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


Java PrimitiveSink.putLong方法代码示例

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


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

示例1: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVlanCounterStatsRequestVer14 message, PrimitiveSink sink) {
    // fixed value property version = 5
    sink.putByte((byte) 0x5);
    // fixed value property type = 18
    sink.putByte((byte) 0x12);
    // fixed value property length = 26
    sink.putShort((short) 0x1a);
    sink.putLong(message.xid);
    // fixed value property statsType = 65535
    sink.putShort((short) 0xffff);
    OFStatsRequestFlagsSerializerVer14.putTo(message.flags, sink);
    // skip pad (4 bytes)
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x9L
    sink.putInt(0x9);
    sink.putInt(message.vlanVid);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:20,代码来源:OFBsnVlanCounterStatsRequestVer14.java

示例2: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduRxTimeoutVer14 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 = 21
    sink.putShort((short) 0x15);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x23L
    sink.putInt(0x23);
    message.portNo.putTo(sink);
    sink.putShort(message.slotNum);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:17,代码来源:OFBsnPduRxTimeoutVer14.java

示例3: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFlowRemovedVer10 message, PrimitiveSink sink) {
    // fixed value property version = 1
    sink.putByte((byte) 0x1);
    // fixed value property type = 11
    sink.putByte((byte) 0xb);
    // fixed value property length = 88
    sink.putShort((short) 0x58);
    sink.putLong(message.xid);
    message.match.putTo(sink);
    message.cookie.putTo(sink);
    sink.putInt(message.priority);
    sink.putShort(message.reason);
    // skip pad (1 bytes)
    sink.putLong(message.durationSec);
    sink.putLong(message.durationNsec);
    sink.putInt(message.idleTimeout);
    // skip pad (2 bytes)
    message.packetCount.putTo(sink);
    message.byteCount.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:22,代码来源:OFFlowRemovedVer10.java

示例4: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFAggregateStatsRequestVer14 message, PrimitiveSink sink) {
    // fixed value property version = 5
    sink.putByte((byte) 0x5);
    // fixed value property type = 18
    sink.putByte((byte) 0x12);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property statsType = 2
    sink.putShort((short) 0x2);
    OFStatsRequestFlagsSerializerVer14.putTo(message.flags, sink);
    // skip pad (4 bytes)
    message.tableId.putTo(sink);
    // skip pad (3 bytes)
    message.outPort.putTo(sink);
    message.outGroup.putTo(sink);
    // skip pad (4 bytes)
    message.cookie.putTo(sink);
    message.cookieMask.putTo(sink);
    message.match.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:22,代码来源:OFAggregateStatsRequestVer14.java

示例5: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnSetMirroringVer14 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 = 0x3L
    sink.putInt(0x3);
    sink.putShort(message.reportMirrorPorts);
    // skip pad (3 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:17,代码来源:OFBsnSetMirroringVer14.java

示例6: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnSetLacpReplyVer14 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 = 24
    sink.putShort((short) 0x18);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x2aL
    sink.putInt(0x2a);
    sink.putLong(message.status);
    message.portNo.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:17,代码来源:OFBsnSetLacpReplyVer14.java

示例7: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFAggregateStatsRequestVer13 message, PrimitiveSink sink) {
    // fixed value property version = 4
    sink.putByte((byte) 0x4);
    // fixed value property type = 18
    sink.putByte((byte) 0x12);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property statsType = 2
    sink.putShort((short) 0x2);
    OFStatsRequestFlagsSerializerVer13.putTo(message.flags, sink);
    // skip pad (4 bytes)
    message.tableId.putTo(sink);
    // skip pad (3 bytes)
    message.outPort.putTo(sink);
    message.outGroup.putTo(sink);
    // skip pad (4 bytes)
    message.cookie.putTo(sink);
    message.cookieMask.putTo(sink);
    message.match.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:22,代码来源:OFAggregateStatsRequestVer13.java

示例8: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduTxRequestVer12 message, PrimitiveSink sink) {
    // fixed value property version = 3
    sink.putByte((byte) 0x3);
    // fixed value property type = 4
    sink.putByte((byte) 0x4);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x1fL
    sink.putInt(0x1f);
    sink.putLong(message.txIntervalMs);
    message.portNo.putTo(sink);
    sink.putShort(message.slotNum);
    // skip pad (3 bytes)
    sink.putBytes(message.data);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnPduTxRequestVer12.java

示例9: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGentableDescStatsRequestVer13 message, PrimitiveSink sink) {
    // fixed value property version = 4
    sink.putByte((byte) 0x4);
    // fixed value property type = 18
    sink.putByte((byte) 0x12);
    // fixed value property length = 24
    sink.putShort((short) 0x18);
    sink.putLong(message.xid);
    // fixed value property statsType = 65535
    sink.putShort((short) 0xffff);
    OFStatsRequestFlagsSerializerVer13.putTo(message.flags, sink);
    // skip pad (4 bytes)
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x4L
    sink.putInt(0x4);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnGentableDescStatsRequestVer13.java

示例10: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVportL2GreVer12 message, PrimitiveSink sink) {
    // fixed value property type = 0x1
    sink.putShort((short) 0x1);
    // fixed value property length = 64
    sink.putShort((short) 0x40);
    OFBsnVportL2GreFlagsSerializerVer12.putTo(message.flags, sink);
    message.portNo.putTo(sink);
    message.loopbackPortNo.putTo(sink);
    message.localMac.putTo(sink);
    message.nhMac.putTo(sink);
    message.srcIp.putTo(sink);
    message.dstIp.putTo(sink);
    sink.putShort(message.dscp);
    sink.putShort(message.ttl);
    // skip pad (2 bytes)
    sink.putLong(message.vpn);
    sink.putLong(message.rateLimit);
    sink.putUnencodedChars(message.ifName);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:21,代码来源:OFBsnVportL2GreVer12.java

示例11: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFQueueGetConfigRequestVer10 message, PrimitiveSink sink) {
    // fixed value property version = 1
    sink.putByte((byte) 0x1);
    // fixed value property type = 20
    sink.putByte((byte) 0x14);
    // fixed value property length = 12
    sink.putShort((short) 0xc);
    sink.putLong(message.xid);
    message.port.putTo(sink);
    // skip pad (2 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:13,代码来源:OFQueueGetConfigRequestVer10.java

示例12: funnel

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

示例13: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFMeterConfigStatsReplyVer14 message, PrimitiveSink sink) {
    // fixed value property version = 5
    sink.putByte((byte) 0x5);
    // fixed value property type = 19
    sink.putByte((byte) 0x13);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property statsType = 10
    sink.putShort((short) 0xa);
    OFStatsReplyFlagsSerializerVer14.putTo(message.flags, sink);
    // skip pad (4 bytes)
    FunnelUtils.putList(message.entries, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:15,代码来源:OFMeterConfigStatsReplyVer14.java

示例14: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFRoleRequestFailedErrorMsgVer12 message, PrimitiveSink sink) {
    // fixed value property version = 3
    sink.putByte((byte) 0x3);
    // fixed value property type = 1
    sink.putByte((byte) 0x1);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property errType = 11
    sink.putShort((short) 0xb);
    OFRoleRequestFailedCodeSerializerVer12.putTo(message.code, sink);
    message.data.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:14,代码来源:OFRoleRequestFailedErrorMsgVer12.java

示例15: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFTableStatsReplyVer11 message, PrimitiveSink sink) {
    // fixed value property version = 2
    sink.putByte((byte) 0x2);
    // fixed value property type = 19
    sink.putByte((byte) 0x13);
    // FIXME: skip funnel of length
    sink.putLong(message.xid);
    // fixed value property statsType = 3
    sink.putShort((short) 0x3);
    OFStatsReplyFlagsSerializerVer11.putTo(message.flags, sink);
    // skip pad (4 bytes)
    FunnelUtils.putList(message.entries, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:15,代码来源:OFTableStatsReplyVer11.java


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