-
Nested Class Summary
Nested Classes
-
Constructor Summary
Constructors
-
Method Summary
read(io.netty.buffer.ByteBuf buffer)
Reads a value from a ByteBuf.
void
Writes an object to a type to a ByteBuf.
-
Constructor Details
-
StringType
public StringType()
-
StringType
public StringType(int maxLength)
-
Method Details
-
read
public String read(io.netty.buffer.ByteBuf buffer)
Reads a value from a ByteBuf.
- Parameters:
buffer
- buffer to read from
- Returns:
- type based on the class type
-
write
public void write(io.netty.buffer.ByteBuf buffer,
String object)
Writes an object to a type to a ByteBuf.
- Parameters:
buffer
- buffer to write to
object
- value to write