本文整理汇总了Java中com.google.common.hash.PrimitiveSink.putUnencodedChars方法的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveSink.putUnencodedChars方法的具体用法?Java PrimitiveSink.putUnencodedChars怎么用?Java PrimitiveSink.putUnencodedChars使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.hash.PrimitiveSink
的用法示例。
在下文中一共展示了PrimitiveSink.putUnencodedChars方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFTableStatsEntryVer11 message, PrimitiveSink sink) {
message.tableId.putTo(sink);
// skip pad (7 bytes)
sink.putUnencodedChars(message.name);
sink.putInt(message.wildcards);
message.match.putTo(sink);
sink.putLong(message.instructions);
sink.putLong(message.writeActions);
sink.putLong(message.applyActions);
sink.putLong(message.config);
sink.putLong(message.maxEntries);
sink.putLong(message.activeCount);
message.lookupCount.putTo(sink);
message.matchedCount.putTo(sink);
}
示例2: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFPortDescVer12 message, PrimitiveSink sink) {
message.portNo.putTo(sink);
// skip pad (4 bytes)
message.hwAddr.putTo(sink);
// skip pad (2 bytes)
sink.putUnencodedChars(message.name);
OFPortConfigSerializerVer12.putTo(message.config, sink);
OFPortStateSerializerVer12.putTo(message.state, sink);
OFPortFeaturesSerializerVer12.putTo(message.curr, sink);
OFPortFeaturesSerializerVer12.putTo(message.advertised, sink);
OFPortFeaturesSerializerVer12.putTo(message.supported, sink);
OFPortFeaturesSerializerVer12.putTo(message.peer, sink);
sink.putLong(message.currSpeed);
sink.putLong(message.maxSpeed);
}
示例3: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVportL2GreVer10 message, PrimitiveSink sink) {
// fixed value property type = 0x1
sink.putShort((short) 0x1);
// fixed value property length = 60
sink.putShort((short) 0x3c);
OFBsnVportL2GreFlagsSerializerVer10.putTo(message.flags, sink);
message.portNo.putTo(sink);
message.loopbackPortNo.putTo(sink);
message.localMac.putTo(sink);
message.nhMac.putTo(sink);
message.srcIp.putTo(sink);
message.dstIp.putTo(sink);
sink.putShort(message.dscp);
sink.putShort(message.ttl);
// skip pad (2 bytes)
sink.putLong(message.vpn);
sink.putLong(message.rateLimit);
sink.putUnencodedChars(message.ifName);
}
示例4: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFDescStatsReplyVer13 message, PrimitiveSink sink) {
// fixed value property version = 4
sink.putByte((byte) 0x4);
// fixed value property type = 19
sink.putByte((byte) 0x13);
// fixed value property length = 1072
sink.putShort((short) 0x430);
sink.putLong(message.xid);
// fixed value property statsType = 0
sink.putShort((short) 0x0);
OFStatsReplyFlagsSerializerVer13.putTo(message.flags, sink);
// skip pad (4 bytes)
sink.putUnencodedChars(message.mfrDesc);
sink.putUnencodedChars(message.hwDesc);
sink.putUnencodedChars(message.swDesc);
sink.putUnencodedChars(message.serialNum);
sink.putUnencodedChars(message.dpDesc);
}
示例5: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnImageDescStatsReplyVer14 message, PrimitiveSink sink) {
// fixed value property version = 5
sink.putByte((byte) 0x5);
// fixed value property type = 19
sink.putByte((byte) 0x13);
// fixed value property length = 536
sink.putShort((short) 0x218);
sink.putLong(message.xid);
// fixed value property statsType = 65535
sink.putShort((short) 0xffff);
OFStatsReplyFlagsSerializerVer14.putTo(message.flags, sink);
// skip pad (4 bytes)
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0xeL
sink.putInt(0xe);
sink.putUnencodedChars(message.imageChecksum);
sink.putUnencodedChars(message.startupConfigChecksum);
}
示例6: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVportL2GreVer14 message, PrimitiveSink sink) {
// fixed value property type = 0x1
sink.putShort((short) 0x1);
// fixed value property length = 64
sink.putShort((short) 0x40);
OFBsnVportL2GreFlagsSerializerVer14.putTo(message.flags, sink);
message.portNo.putTo(sink);
message.loopbackPortNo.putTo(sink);
message.localMac.putTo(sink);
message.nhMac.putTo(sink);
message.srcIp.putTo(sink);
message.dstIp.putTo(sink);
sink.putShort(message.dscp);
sink.putShort(message.ttl);
// skip pad (2 bytes)
sink.putLong(message.vpn);
sink.putLong(message.rateLimit);
sink.putUnencodedChars(message.ifName);
}
示例7: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVportL2GreVer11 message, PrimitiveSink sink) {
// fixed value property type = 0x1
sink.putShort((short) 0x1);
// fixed value property length = 64
sink.putShort((short) 0x40);
OFBsnVportL2GreFlagsSerializerVer11.putTo(message.flags, sink);
message.portNo.putTo(sink);
message.loopbackPortNo.putTo(sink);
message.localMac.putTo(sink);
message.nhMac.putTo(sink);
message.srcIp.putTo(sink);
message.dstIp.putTo(sink);
sink.putShort(message.dscp);
sink.putShort(message.ttl);
// skip pad (2 bytes)
sink.putLong(message.vpn);
sink.putLong(message.rateLimit);
sink.putUnencodedChars(message.ifName);
}
示例8: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnVportL2GreVer13 message, PrimitiveSink sink) {
// fixed value property type = 0x1
sink.putShort((short) 0x1);
// fixed value property length = 64
sink.putShort((short) 0x40);
OFBsnVportL2GreFlagsSerializerVer13.putTo(message.flags, sink);
message.portNo.putTo(sink);
message.loopbackPortNo.putTo(sink);
message.localMac.putTo(sink);
message.nhMac.putTo(sink);
message.srcIp.putTo(sink);
message.dstIp.putTo(sink);
sink.putShort(message.dscp);
sink.putShort(message.ttl);
// skip pad (2 bytes)
sink.putLong(message.vpn);
sink.putLong(message.rateLimit);
sink.putUnencodedChars(message.ifName);
}
示例9: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(TileParameters o, PrimitiveSink into)
{
super.funnel(o, into);
if (o instanceof PointTileParameters)
{
final PointTileParameters _o = (PointTileParameters) o;
into
.putDouble(_o.pointDiameter)
.putBoolean(_o.noFill)
.putBoolean(_o.noColor);
if (highlight != null)
into.putUnencodedChars(highlight.toString());
}
}
示例10: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnInterfaceVer14 message, PrimitiveSink sink) {
message.hwAddr.putTo(sink);
// skip pad (2 bytes)
sink.putUnencodedChars(message.name);
message.ipv4Addr.putTo(sink);
message.ipv4Netmask.putTo(sink);
}
示例11: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnInterfaceVer12 message, PrimitiveSink sink) {
message.hwAddr.putTo(sink);
// skip pad (2 bytes)
sink.putUnencodedChars(message.name);
message.ipv4Addr.putTo(sink);
message.ipv4Netmask.putTo(sink);
}
示例12: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnLogVer13 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 = 0x3fL
sink.putInt(0x3f);
OFBsnLoglevelSerializerVer13.putTo(message.loglevel, sink);
sink.putUnencodedChars(message.data);
}
示例13: putNullableStringTo
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
/** puts a nullable String into a primitive sink. The entry is prepended by a 'presence'
* boolean bit and the string length;
*
*
* @param sink the sink to put the object
* @param nullableObj the potentially null string to put in the sink
*/
public static void putNullableStringTo(PrimitiveSink sink,
@Nullable CharSequence nullableChars) {
sink.putBoolean(nullableChars != null);
if(nullableChars != null) {
sink.putInt(nullableChars.length());
sink.putUnencodedChars(nullableChars);
}
}
示例14: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnGetSwitchPipelineReplyVer13 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 = 272
sink.putShort((short) 0x110);
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0x34L
sink.putInt(0x34);
sink.putUnencodedChars(message.pipeline);
}
示例15: funnel
import com.google.common.hash.PrimitiveSink; //导入方法依赖的package包/类
@Override
public void funnel(OFBsnControllerConnectionVer13 message, PrimitiveSink sink) {
OFBsnControllerConnectionStateSerializerVer13.putTo(message.state, sink);
message.auxiliaryId.putTo(sink);
// skip pad (2 bytes)
OFControllerRoleSerializerVer13.putTo(message.role, sink);
sink.putUnencodedChars(message.uri);
}