James Courtney

Results 20 comments of James Courtney

This is an interesting idea -- thanks for this! I think FlatSharp would likely need to validate that the layout of the struct was the same as the layout declared....

That's fair commentary. I agree that `Unsafe.As` can be cumbersome. I think the following syntax would work in principle: ```fbs struct SomeStruct (fs_valueStruct, fs_existingType="System.Numerics.Vector3") { X : float; Y :...

I've given this a small amount of thought, and I think this is going to be a "use it at your own risk feature". A rough implementation might be: -...

Yes, this is quite intentional and is one of the big things in V7. Let me explain the rationale a little bit. In 6.X and before, all generated serializers are...

Could we accomplish the same by having a `fs_external` attribute that tells the compiler to reference but not generate?

> Could we accomplish the same by having a `fs_external` attribute that tells the compiler to reference but not generate? This is really easy for me to add. Let me...

> How would the current code generation/compile loop happen? Would we pass extra assemblies to FlatSharpCompiler similar to what I did for the Unity native array PR? Or could we...

I'm going to close this issue, but wanted to give a small update on what I mentioned about generics being tricky: They are way trickier than I thought. I spent...

Docs here: https://github.com/jamescourtney/FlatSharp/wiki/FBS-Annotations#fs_external

Thanks for the level of detail here. I'll take a look this weekend. Can you also share the version of FlatSharp that you are using? I'll assume 6.3.1 for now.