public class OfPacketWriter extends PacketWriter
PacketWriter
to include the
OpenFlow datatypes from com.hp.of.lib.dt
.Constructor and Description |
---|
OfPacketWriter(ByteBuffer bb)
Constructs the packet write backed by the supplied byte buffer.
|
OfPacketWriter(int length)
Constructs a packet writer wrapping a newly allocated byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
write(BufferId id)
Writes a buffer id (u32) to the buffer.
|
void |
write(DataPathId dpid)
Writes a datapath id (u64) to the buffer.
|
void |
write(GroupId id)
Writes a group id (u32) to the buffer.
|
void |
write(MeterId id)
Writes a meter id (u32) to the buffer.
|
void |
write(QueueId id)
Writes a queue id (u32) to the buffer.
|
void |
write(TableId id)
Writes a table id (u8) to the buffer.
|
void |
write(VId id)
Writes a virtual id (u16) to the buffer.
|
array, setU16, setU32, toString, wi, writableBytes, write, write, write, write, write, write, write, write, write, writeByte, writeBytes, writeBytes, writeBytes, writeInt, writeLong, writeString, writeString, writeU16, writeU24, writeU32, writeU8, writeU8, writeZeros
public OfPacketWriter(ByteBuffer bb)
bb
- the backing byte buffer bufferpublic OfPacketWriter(int length)
length
- the length of the byte array to createpublic void write(GroupId id)
id
- the group id to writepublic void write(BufferId id)
id
- the buffer id to writepublic void write(QueueId id)
id
- the queue id to writepublic void write(MeterId id)
id
- the meter id to writepublic void write(TableId id)
id
- the table id to writepublic void write(VId id)
id
- the virtual id to writepublic void write(DataPathId dpid)
dpid
- the datapath id to writeCopyright © 2015. All Rights Reserved.