Interface DataType.Reader<T>

Type Parameters:
T - the type of value to read
Enclosing class:
DataType<T>

public static interface DataType.Reader<T>
Represents a reader that can read values of a DataType from a buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    <B extends MessageBuffer, C extends MessageCodec<B>>
    T
    read(C codec, B buffer)
    Reads a value of type DataType.Reader from the given buffer using the specified codec.
  • Method Details

    • read

      <B extends MessageBuffer, C extends MessageCodec<B>> T read(C codec, B buffer)
      Reads a value of type DataType.Reader from the given buffer using the specified codec.
      Parameters:
      codec - the codec to use for reading
      buffer - the buffer to read from
      Returns:
      the read value