本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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)
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}