5.7.0 #200
Replies: 2 comments 8 replies
-
@TYoungSL, @Astn, and @tdmowrer -- this may be relevant to you. |
Beta Was this translation helpful? Give feedback.
-
Just published 5.7.1 on Nuget. It's a small update on top of 5.7.0. I found some interesting/horrible things about
Regarding
.Net 5.0 behaves in a (mostly) sane way, though it still loses its mind a bit with 2 and 3 item structs. The table above is only for .Net Core 2.1 seems reasonably consistent, but goes extra crazy on a 4 item struct when doing field-by-field serialization. The result is repeatable on my system, but only for In any case, this is now all configurable. Have fun. The default heuristic I ended up using if you don't pick a value for memmarshal is:
|
Beta Was this translation helpful? Give feedback.
-
FlatSharp 5.7.0 adds the most commonly requested feature: Value-type structs. Value type structs can be used from both C# and from .fbs files, but work best from FBS files:
FlatSharp value structs...
valueStruct.Property1
-- all ofvalueStruct
is read and then you can accessproperty1
).Full samples are available here.
5.7.0 has a few other assorted changes as well:
Some types are now marked as obsolete. These are being considered for removal or are scheduled for removal in FlatSharp version 6.0.0, which is an upcoming release without a firm date or feature set.
FlatSharp.Unsafe
package is scheduled for removal in version 6.0.0.IFlatBufferAddressableStruct
interface is being considered for removal in version 6.0.0, because its primary purpose was enabling marshaling from reference -> value types, and this is now supported natively with value structs. If you want to keep usingIFlatBufferAddressableStruct
, even with the value structs feature, please raise an issue in this repository.This discussion was created from the release 5.7.0.
Beta Was this translation helpful? Give feedback.
All reactions