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