Package org.symbol.sdk.utils
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.
- Factory
- Factory used to deserialize objects from a byte slice.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes a single element from the start of the given buffer.
-
Method Details
-
deserialize
- 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.
-