Doesn't that depend on the generic type T of the Layout<T>?
For example, MessageLayout extends AbstractLayout<Message> returns a
Message instance.
You could return a ByteBuffer, but generally for an efficient binary layout
I would look at the encode method instead.

On Tue, Jan 16, 2018 at 11:45 PM, Mikael Ståldal <[email protected]> wrote:

> How is a binary layout (extending AbstractLayout) supposed to implement
> the toSerializable method in the Layout interface?
>
> Why is that method there?
>
>

Reply via email to