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


Java PrimitiveSink.putBytes方法代码示例

本文整理汇总了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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnPduTxRequestVer11.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnPduRxRequestVer12.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:19,代码来源:OFBsnPduTxRequestVer14.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:18,代码来源:OFPacketInVer14.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:18,代码来源:OFPacketInVer13.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:17,代码来源:OFPacketInVer11.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:11,代码来源:OFEchoReplyVer11.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:11,代码来源:OFEchoRequestVer12.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFBsnTlvCircuitIdVer13.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:16,代码来源:OFPacketOutVer14.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFBsnTlvNameVer13.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:16,代码来源:OFPacketInVer10.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:15,代码来源:OFPacketOutVer10.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFBsnTlvNameVer14.java

示例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);
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:11,代码来源:OFEchoReplyVer13.java


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