List of usage examples for io.netty.buffer ByteBuf writeByte
public abstract ByteBuf writeByte(int value);
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnStatusSerializerVer13.java
public static void writeTo(ByteBuf bb, OFBsnStatus e) { bb.writeByte(toWireValue(e)); }
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnVlanCounterConstantsSerializerVer13.java
public static void writeTo(ByteBuf bb, OFBsnVlanCounterConstants e) { bb.writeByte(U8.t(toWireValue(e))); }
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnVlanCounterSerializerVer13.java
public static void writeTo(ByteBuf bb, OFBsnVlanCounter e) { bb.writeByte(toWireValue(e)); }
From source file:com.ltln.modules.openflow.core.protocol.ver13.OFBsnVrfCounterSerializerVer13.java
public static void writeTo(ByteBuf bb, OFBsnVrfCounter e) { bb.writeByte(toWireValue(e)); }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFControllerRoleReasonSerializerVer14.java
public static void writeTo(ByteBuf bb, OFControllerRoleReason e) { bb.writeByte(toWireValue(e)); }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFRequestforwardReasonSerializerVer14.java
public static void writeTo(ByteBuf bb, OFRequestforwardReason e) { bb.writeByte(U8.t(toWireValue(e))); }
From source file:com.ltln.modules.openflow.core.protocol.ver14.OFTableReasonSerializerVer14.java
public static void writeTo(ByteBuf bb, OFTableReason e) { bb.writeByte(toWireValue(e)); }
From source file:com.ltln.modules.openflow.core.types.OFBooleanValue.java
License:Apache License
@Override public void writeTo(ByteBuf bb) { bb.writeByte(getInt()); }
From source file:com.ltln.modules.openflow.core.types.U8.java
License:Apache License
@Override public void writeTo(ByteBuf bb) { bb.writeByte(raw); }
From source file:com.ltln.modules.openflow.core.util.StringByteSerializer.java
License:Apache License
public static void writeTo(final ByteBuf data, final int length, final String value) { try {// www . j a v a2 s . c om byte[] name = value.getBytes("ASCII"); if (name.length < length) { data.writeBytes(name); for (int i = name.length; i < length; ++i) { data.writeByte((byte) 0); } } else { data.writeBytes(name, 0, length - 1); data.writeByte((byte) 0); } } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }