You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're writing a library or framework that uses SBE codecs it's very hard to abstract over common operations from SBE codecs. This could be resolved with the addition of a common interface or abstract class. The kind of common operations that would be useful to abstract over would be:
Encoder wrap(final MutableDirectBuffer buffer, final int offset)
Encoder wrapAndApplyHeader( final MutableDirectBuffer buffer, final int offset, final MessageHeaderEncoder headerEncoder)
I'm happy to spend time to implement this - I don't think it would take long to be honest but I wanted to open an issue for feedback / discussion before starting.
The text was updated successfully, but these errors were encountered:
Thanks for pointing that out @mjpt777 - is there a configuration option that I need to use in order to generate them? At the moment all the codecs that I've seen generated don't implement these interfaces.
If you're writing a library or framework that uses SBE codecs it's very hard to abstract over common operations from SBE codecs. This could be resolved with the addition of a common interface or abstract class. The kind of common operations that would be useful to abstract over would be:
int sbeBlockLength()
StringBuilder appendTo(final StringBuilder builder)
int sbeTemplateId()
int sbeSchemaId()
int sbeSchemaVersion()
Encoder wrap(final MutableDirectBuffer buffer, final int offset)
Encoder wrapAndApplyHeader( final MutableDirectBuffer buffer, final int offset, final MessageHeaderEncoder headerEncoder)
I'm happy to spend time to implement this - I don't think it would take long to be honest but I wanted to open an issue for feedback / discussion before starting.
The text was updated successfully, but these errors were encountered: