public interface Delegate<V>
| Modifier and Type | Method and Description |
|---|---|
WireFormat.FieldType |
getFieldType()
The field type (for possible reflective operations in future releases).
|
V |
readFrom(Input input)
Reads the value from the input.
|
void |
transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the type from the input to the output.
|
Class<?> |
typeClass()
The class of the target value.
|
void |
writeTo(Output output,
int number,
V value,
boolean repeated)
Writes the
value to the output. |
WireFormat.FieldType getFieldType()
V readFrom(Input input) throws IOException
IOExceptionvoid writeTo(Output output, int number, V value, boolean repeated) throws IOException
value to the output.IOExceptionvoid transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
IOExceptionClass<?> typeClass()
Copyright © 2009–2022. All rights reserved.