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
[C#] Generate DTOs from SBE IR for non-perf-sensitive usecases.
In some applications performance is not cricital. Some users would like
to use SBE across their whole "estate", but don't want the "sharp edges"
associated with using flyweight codecs, e.g., accidental escape.
In this commit, I've added a first cut of DTO generation for C# and a
simple test based on the Car Example.
The DTOs support encoding and decoding via the generated codecs using
`EncodeInto(CodecT codec)` and `DecodeFrom(CodecT codec)` methods.
Currently there is no support for equality/comparison or read-only views
over the data; although, these have been requested.
Here are some points that we may or may not wish to change in the
future:
1. Non-present (due to the encoded version) string/array data and
repeating groups are represented as `null` rather than empty.
2. Non-present primitive values are represented as their associated null
value rather than using nullable types.
3. Non-present bitsets are represented as `0`.
4. DTOs are generated via a separate `CodeGenerator` rather than a flag
to the existing C# `CodeGenerator`.
0 commit comments