Interface ArrayHelpers.Factory<T extends Serializer>

Type Parameters:

T - Element type.

Enclosing class:

ArrayHelpers

Functional Interface:

This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


@FunctionalInterface public static interface ArrayHelpers.Factory<T extends Serializer>
Factory

Factory used to deserialize objects from a byte slice.

  • Method Summary

    Modifier and Type
    Method
    Description
    Deserializes a single element from the start of the given buffer.
  • Method Details

    • deserialize

      T deserialize(ByteBuffer buffer)
      Factory.deserialize

      Deserializes a single element from the start of the given buffer. The buffer is not advanced — the caller moves the cursor by the returned element's size().

      Parameters:

      buffer - Buffer positioned at the element (0-based).

      Returns:

      Deserialized element.