本文整理汇总了Java中com.google.common.hash.PrimitiveSink.putBytes方法的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveSink.putBytes方法的具体用法?Java PrimitiveSink.putBytes怎么用?Java PrimitiveSink.putBytes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.hash.PrimitiveSink
的用法示例。
在下文中一共展示了PrimitiveSink.putBytes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduTxRequestVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// 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);
}
示例2: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduRxRequestVer12 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 = 0x21L
sink.putInt(0x21);
sink.putLong(message.timeoutMs);
message.portNo.putTo(sink);
sink.putShort(message.slotNum);
// skip pad (3 bytes)
sink.putBytes(message.data);
}
示例3: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnPduTxRequestVer14 message, PrimitiveSink sink) {
// fixed value property version = 5
sink.putByte((byte) 0x5);
// 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);
}
示例4: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketInVer14 message, PrimitiveSink sink) {
// fixed value property version = 5
sink.putByte((byte) 0x5);
// fixed value property type = 10
sink.putByte((byte) 0xa);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
sink.putInt(message.totalLen);
OFPacketInReasonSerializerVer14.putTo(message.reason, sink);
message.tableId.putTo(sink);
message.cookie.putTo(sink);
message.match.putTo(sink);
// skip pad (2 bytes)
sink.putBytes(message.data);
}
示例5: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketInVer13 message, PrimitiveSink sink) {
// fixed value property version = 4
sink.putByte((byte) 0x4);
// fixed value property type = 10
sink.putByte((byte) 0xa);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
sink.putInt(message.totalLen);
OFPacketInReasonSerializerVer13.putTo(message.reason, sink);
message.tableId.putTo(sink);
message.cookie.putTo(sink);
message.match.putTo(sink);
// skip pad (2 bytes)
sink.putBytes(message.data);
}
示例6: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketInVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// fixed value property type = 10
sink.putByte((byte) 0xa);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
message.inPort.putTo(sink);
message.inPhyPort.putTo(sink);
sink.putInt(message.totalLen);
OFPacketInReasonSerializerVer11.putTo(message.reason, sink);
message.tableId.putTo(sink);
sink.putBytes(message.data);
}
示例7: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFEchoReplyVer11 message, PrimitiveSink sink) {
// fixed value property version = 2
sink.putByte((byte) 0x2);
// fixed value property type = 3
sink.putByte((byte) 0x3);
// FIXME: skip funnel of length
sink.putLong(message.xid);
sink.putBytes(message.data);
}
示例8: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFEchoRequestVer12 message, PrimitiveSink sink) {
// fixed value property version = 3
sink.putByte((byte) 0x3);
// fixed value property type = 2
sink.putByte((byte) 0x2);
// FIXME: skip funnel of length
sink.putLong(message.xid);
sink.putBytes(message.data);
}
示例9: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnTlvCircuitIdVer13 message, PrimitiveSink sink) {
// fixed value property type = 0xe
sink.putShort((short) 0xe);
// FIXME: skip funnel of length
sink.putBytes(message.value);
}
示例10: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketOutVer14 message, PrimitiveSink sink) {
// fixed value property version = 5
sink.putByte((byte) 0x5);
// fixed value property type = 13
sink.putByte((byte) 0xd);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
message.inPort.putTo(sink);
// FIXME: skip funnel of actionsLen
// skip pad (6 bytes)
FunnelUtils.putList(message.actions, sink);
sink.putBytes(message.data);
}
示例11: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnTlvNameVer13 message, PrimitiveSink sink) {
// fixed value property type = 0x34
sink.putShort((short) 0x34);
// FIXME: skip funnel of length
sink.putBytes(message.value);
}
示例12: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketInVer10 message, PrimitiveSink sink) {
// fixed value property version = 1
sink.putByte((byte) 0x1);
// fixed value property type = 10
sink.putByte((byte) 0xa);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
sink.putInt(message.totalLen);
message.inPort.putTo(sink);
OFPacketInReasonSerializerVer10.putTo(message.reason, sink);
// skip pad (1 bytes)
sink.putBytes(message.data);
}
示例13: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPacketOutVer10 message, PrimitiveSink sink) {
// fixed value property version = 1
sink.putByte((byte) 0x1);
// fixed value property type = 13
sink.putByte((byte) 0xd);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.bufferId.putTo(sink);
message.inPort.putTo(sink);
// FIXME: skip funnel of actionsLen
FunnelUtils.putList(message.actions, sink);
sink.putBytes(message.data);
}
示例14: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnTlvNameVer14 message, PrimitiveSink sink) {
// fixed value property type = 0x34
sink.putShort((short) 0x34);
// FIXME: skip funnel of length
sink.putBytes(message.value);
}
示例15: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFEchoReplyVer13 message, PrimitiveSink sink) {
// fixed value property version = 4
sink.putByte((byte) 0x4);
// fixed value property type = 3
sink.putByte((byte) 0x3);
// FIXME: skip funnel of length
sink.putLong(message.xid);
sink.putBytes(message.data);
}