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


Java PrimitiveSink.putByte方法代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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