public abstract class AbstractOxmMatchEntrySerializer extends Object implements OFSerializer<MatchEntry>, HeaderSerializer<MatchEntry>
Constructor and Description |
---|
AbstractOxmMatchEntrySerializer() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getOxmClassCode()
Returns the numeric representation of oxm_class.
|
protected abstract int |
getOxmFieldCode()
Returns the numeric representation of oxm_field.
|
protected abstract int |
getValueLength()
Returns the match entry value length (without mask length).
|
void |
serialize(MatchEntry entry,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
void |
serializeHeader(MatchEntry entry,
io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
|
protected static void |
writeMask(byte[] mask,
io.netty.buffer.ByteBuf out,
int length) |
protected static void |
writeOxmFieldAndLength(io.netty.buffer.ByteBuf out,
int fieldValue,
boolean hasMask,
int lengthArg) |
public void serialize(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
serialize
in interface OFSerializer<MatchEntry>
entry
- object to be serializedoutBuffer
- output bufferpublic void serializeHeader(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer)
HeaderSerializer
serializeHeader
in interface HeaderSerializer<MatchEntry>
entry
- object whose headers should be serializedoutBuffer
- output bufferprotected static void writeMask(byte[] mask, io.netty.buffer.ByteBuf out, int length)
protected static void writeOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg)
protected abstract int getOxmFieldCode()
protected abstract int getOxmClassCode()
protected abstract int getValueLength()
Copyright © 2020 OpenDaylight. All rights reserved.