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


Java PrimitiveSink.putShort方法代码示例

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


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

示例1: funnel

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

示例2: funnel

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

示例3: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFlowDeleteVer14 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 = 3
    sink.putShort((short) 0x3);
    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,代码来源:OFFlowDeleteVer14.java

示例4: funnel

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

示例5: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGentableClearRequestVer13 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 = 52
    sink.putShort((short) 0x34);
    sink.putLong(message.xid);
    // fixed value property experimenter = 0x5c16c7L
    sink.putInt(0x5c16c7);
    // fixed value property subtype = 0x30L
    sink.putInt(0x30);
    message.tableId.putTo(sink);
    // skip pad (2 bytes)
    message.checksum.putTo(sink);
    message.checksumMask.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnGentableClearRequestVer13.java

示例6: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFTableModFailedErrorMsgVer12 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 = 8
    sink.putShort((short) 0x8);
    OFTableModFailedCodeSerializerVer12.putTo(message.code, sink);
    message.data.putTo(sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:14,代码来源:OFTableModFailedErrorMsgVer12.java

示例7: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFActionSetQueueVer14 message, PrimitiveSink sink) {
    // fixed value property type = 21
    sink.putShort((short) 0x15);
    // fixed value property length = 8
    sink.putShort((short) 0x8);
    sink.putLong(message.queueId);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:9,代码来源:OFActionSetQueueVer14.java

示例8: funnel

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

示例9: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFTableStatsRequestVer14 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 = 16
    sink.putShort((short) 0x10);
    sink.putLong(message.xid);
    // fixed value property statsType = 3
    sink.putShort((short) 0x3);
    OFStatsRequestFlagsSerializerVer14.putTo(message.flags, sink);
    // skip pad (4 bytes)
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:15,代码来源:OFTableStatsRequestVer14.java

示例10: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFInstructionWriteActionsVer12 message, PrimitiveSink sink) {
    // fixed value property type = 3
    sink.putShort((short) 0x3);
    // FIXME: skip funnel of length
    // skip pad (4 bytes)
    FunnelUtils.putList(message.actions, sink);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:9,代码来源:OFInstructionWriteActionsVer12.java

示例11: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFeaturesRequestVer10 message, PrimitiveSink sink) {
    // fixed value property version = 1
    sink.putByte((byte) 0x1);
    // fixed value property type = 5
    sink.putByte((byte) 0x5);
    // fixed value property length = 8
    sink.putShort((short) 0x8);
    sink.putLong(message.xid);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:11,代码来源:OFFeaturesRequestVer10.java

示例12: funnel

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

示例13: funnel

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

示例14: funnel

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

示例15: funnel

import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFActionIdSetQueueVer14 message, PrimitiveSink sink) {
    // fixed value property type = 21
    sink.putShort((short) 0x15);
    // fixed value property length = 4
    sink.putShort((short) 0x4);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFActionIdSetQueueVer14.java


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