本文整理汇总了Java中com.google.common.hash.PrimitiveSink.putByte方法的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveSink.putByte方法的具体用法?Java PrimitiveSink.putByte怎么用?Java PrimitiveSink.putByte使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.hash.PrimitiveSink
的用法示例。
在下文中一共展示了PrimitiveSink.putByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduRxRequestVer13 message, PrimitiveSink sink) {
// fixed value property version = 4
sink.putByte((byte) 0x4);
// 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 = 0x21L
sink.putInt(0x21);
sink.putLong(message.timeoutMs);
message.portNo.putTo(sink);
sink.putShort(message.slotNum);
// skip pad (3 bytes)
sink.putBytes(message.data);
}
示例2: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFMeterStatsRequestVer13 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 = 9
sink.putShort((short) 0x9);
OFStatsRequestFlagsSerializerVer13.putTo(message.flags, sink);
// skip pad (4 bytes)
sink.putLong(message.meterId);
// skip pad (4 bytes)
}
示例3: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduRxReplyVer13 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 = 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);
}
示例4: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGetMirroringRequestVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// 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)
}
示例5: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnDebugCounterDescStatsRequestVer14 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 = 24
sink.putShort((short) 0x18);
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 = 0xdL
sink.putInt(0xd);
}
示例6: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFeaturesReplyVer12 message, PrimitiveSink sink) {
// fixed value property version = 3
sink.putByte((byte) 0x3);
// fixed value property type = 6
sink.putByte((byte) 0x6);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.datapathId.putTo(sink);
sink.putLong(message.nBuffers);
sink.putShort(message.nTables);
// skip pad (3 bytes)
OFCapabilitiesSerializerVer12.putTo(message.capabilities, sink);
sink.putLong(message.reserved);
FunnelUtils.putList(message.ports, sink);
}
示例7: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGetSwitchPipelineRequestVer14 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 = 16
sink.putShort((short) 0x10);
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0x33L
sink.putInt(0x33);
}
示例8: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVirtualPortRemoveReplyVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// 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);
}
示例9: 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);
}
示例10: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPortStatsReplyVer10 message, PrimitiveSink sink) {
// fixed value property version = 1
sink.putByte((byte) 0x1);
// fixed value property type = 17
sink.putByte((byte) 0x11);
// FIXME: skip funnel of length
sink.putLong(message.xid);
// fixed value property statsType = 4
sink.putShort((short) 0x4);
OFStatsReplyFlagsSerializerVer10.putTo(message.flags, sink);
FunnelUtils.putList(message.entries, sink);
}
示例11: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPortStatsRequestVer10 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 = 20
sink.putShort((short) 0x14);
sink.putLong(message.xid);
// fixed value property statsType = 4
sink.putShort((short) 0x4);
OFStatsRequestFlagsSerializerVer10.putTo(message.flags, sink);
message.portNo.putTo(sink);
// skip pad (6 bytes)
}
示例12: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFeaturesRequestVer14 message, PrimitiveSink sink) {
// fixed value property version = 5
sink.putByte((byte) 0x5);
// fixed value property type = 5
sink.putByte((byte) 0x5);
// fixed value property length = 8
sink.putShort((short) 0x8);
sink.putLong(message.xid);
}
示例13: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFFeaturesRequestVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// fixed value property type = 5
sink.putByte((byte) 0x5);
// fixed value property length = 8
sink.putShort((short) 0x8);
sink.putLong(message.xid);
}
示例14: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPortStatsReplyVer13 message, PrimitiveSink sink) {
// fixed value property version = 4
sink.putByte((byte) 0x4);
// fixed value property type = 19
sink.putByte((byte) 0x13);
// FIXME: skip funnel of length
sink.putLong(message.xid);
// fixed value property statsType = 4
sink.putShort((short) 0x4);
OFStatsReplyFlagsSerializerVer13.putTo(message.flags, sink);
// skip pad (4 bytes)
FunnelUtils.putList(message.entries, sink);
}
示例15: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnSetAuxCxnsRequestVer14 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 = 0x3aL
sink.putInt(0x3a);
sink.putLong(message.numAux);
}