blob: 01e701277bb26de6d60c746f334dbda4479c9d86 [file] [log] [blame]
Yotam Harchol161a5d52013-07-25 17:17:48 -07001package org.openflow.types;
2
3import org.jboss.netty.buffer.ChannelBuffer;
4import org.openflow.exceptions.OFParseError;
5
6
7
8public interface OFValueType {
9
10 public int getLength();
11 public byte[] getBytes();
12
13 public interface Serializer<T extends OFValueType> {
14 public void writeTo(T value, ChannelBuffer c);
15 public T readFrom(ChannelBuffer c) throws OFParseError;
16 }
17
18}