Package org.agrona.sbe
Interface EncoderFlyweight
-
- All Superinterfaces:
Flyweight
- All Known Subinterfaces:
CompositeEncoderFlyweight
,MessageEncoderFlyweight
public interface EncoderFlyweight extends Flyweight
A flyweight for encoding an SBE type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableDirectBuffer
buffer()
Buffer in which the flyweight is encoded.EncoderFlyweight
wrap(MutableDirectBuffer buffer, int offset)
Wrap a buffer for encoding at a given offset.-
Methods inherited from interface org.agrona.sbe.Flyweight
encodedLength, offset, sbeSchemaId, sbeSchemaVersion
-
-
-
-
Method Detail
-
buffer
MutableDirectBuffer buffer()
Buffer in which the flyweight is encoded.
-
wrap
EncoderFlyweight wrap(MutableDirectBuffer buffer, int offset)
Wrap a buffer for encoding at a given offset.- Parameters:
buffer
- to be wrapped and into which the type will be encoded.offset
- at which the encoded object will begin.- Returns:
- the
EncoderFlyweight
for fluent API design.
-
-