Граф коммитов

220 Коммитов

Автор SHA1 Сообщение Дата
Justin 2515d92361
RPC: allow null serviceImpl in BindService (#361)
* RPC: allow null serviceImpl in BindService

For instance, using `MapGrpcService` from `Grpc.AspNetCore.Server` invokes this method with a `null` serviceImpl.

* RPC: add warning disable/restore statements

When enabling nullable reference types on generated code, CS8604 is raised in these generated methods.

Unfortunately, `Grpc.Core.Api` declares these binder method parameters as non-nullable, but then `Grpc.AspNetCore.Server` invokes `BindService` using reflection, passing a null service implementation.
2023-01-25 02:50:28 -08:00
James Courtney 4bbffc8428
Continue Test Migration (#355)
* More more

* Remove uncovered lines

* Move depth limit tests

* More and compiler instrumentation

* Remove redundant check, fix flaky coverage

* Fix unreliable test

* Deserialization options tests

* Delete redundant tests, migrate required tests
2023-01-21 00:07:03 -08:00
James Courtney be39bfb141
Improve native array coverage (#360)
* Improve native array coverage

* LE assertion

* Rev version to 7.1
2023-01-19 23:20:32 -08:00
Jonathan Chambers 72a0ecf49a
Add support for Unity NativeArray as vector type (#319)
* Add support for Unity NativeArray vector type.

* Ensure NativeArray serialization occurs only on aligned types.
2023-01-05 22:12:29 -08:00
dependabot[bot] 2795a751b4
Bump Newtonsoft.Json from 13.0.1 to 13.0.2 in /src/Benchmarks/Benchmark (#356)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/13.0.1...13.0.2)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-09 02:35:11 -08:00
James Courtney 0bc08b9ee3
Move more tests! (#351) 2022-11-26 04:38:38 -08:00
James Courtney fb060c8d0f
Fix C# 8 language issue with target type new expression (#353) 2022-11-25 02:35:11 -08:00
James Courtney 359b753f8f
Update samples to net7 (#350) 2022-11-17 16:44:03 -08:00
James Courtney b6e2b3c90e
Move more tests (#349)
* Remove NonVirtual from benchmarks

* Move more tests, possibly fix bug

* Update version
2022-11-17 16:07:38 -08:00
James Courtney 0471fde707
V7 docs (#332) 2022-11-16 21:02:33 -08:00
James Courtney 291e0930c4
Add .IsPinned to input buffers (#346) 2022-11-16 01:56:12 -08:00
James Courtney e12bc42ead
Object pools (#345) 2022-11-16 01:29:01 -08:00
James Courtney 7217cb8544
Move tests into E2E Tests (#344) 2022-11-12 02:18:14 -08:00
James Courtney ffb79bad72
Remove fs_nonVirtual support (#343)
* Remove fs_nonVirtual support

* coverage

* fix test
2022-11-10 14:16:48 -08:00
James Courtney c899b845d2
FlatSharp.Compiler only targets .net 6 now (#338) 2022-11-06 01:53:11 -07:00
James Courtney fc7cffa03b
Unsafe unions (#336) 2022-11-04 01:56:54 -07:00
James Courtney 64d7cc958a
Remove support for array vectors (#335)
And change default [ubyte] vector to be Memory
2022-11-02 23:52:32 -07:00
James Courtney f3c8fed670
Update Flatc to version 22.10.26 (#334)
* Update Flatc to version 22.10.26

* fix coverage

* Remove console.writeline
2022-11-01 14:12:31 -07:00
James Courtney 4f2dbc0a85
Faster greedy vectors (#333)
* Create custom immutablelist{t} class to enable faster greedy vectors

* copyrights
2022-11-01 02:32:35 -07:00
James Courtney fa1525eeca
Tweak serializer settings, publish symbols, move concrete unions into FlatSharp, add more union interfaces (#331) 2022-10-31 13:03:32 -07:00
James Courtney 1ec4f30ee1
Settings builder and increase UT speed (#330) 2022-10-31 10:13:24 -07:00
James Courtney a12c620e38
More v7 API Breaking Changes (#329)
* - BinarySearchByFlatBufferKey is no longer an extension method
- File IDs are now generated with the serializer instead of by reflection
- Type facades are removed
- Sorted Vector Keys registered statically
- Indexed Vector gets faster binary search
- FlatSharp.Runtime no longer uses any reflection
- ISerializer.CSharp, Assembly, and AssemblyBytes removed
- ISerializer.Parse now takes an optional deserializationmode argument.

* Fix compiler

* Fix test

* Add ISortableTable

* coverage

* restore extension methods now that constraints are added
2022-10-30 23:46:02 -07:00
James Courtney c4f432da71
Rename extern (#328)
* Rename fs_external -> fs_unsafeExternal

* Reorder

* Fix build
2022-10-28 23:57:39 -07:00
James Courtney 1e1606dc73
External Generics and Bugfixes (#327)
* Support external generics
Fix bug about renaming / reordering
Sorted vector AOT fix
Refactor to extract mutators

* More tests
2022-10-28 12:29:43 -07:00
James Courtney fe52cbee66
Add external attribute (#322) 2022-10-26 01:47:53 -07:00
James Courtney 7993a58ce9
Normalize field names by default (#326)
* Normalize field names by default

* Fix tests
2022-10-26 00:42:01 -07:00
James Courtney 1f0241e892
.NET 7 Support (#323)
Support .NET 7 Static abstract interfaces and required properties
2022-10-25 11:26:52 -07:00
James Courtney 2ec1312212
Optimize vtables further (#321) 2022-10-16 15:26:55 -07:00
James Courtney cbab35497f
VTable Optimizations (#320) 2022-10-15 18:58:27 -07:00
James Courtney 1885fa4b8e
Vector Perf Improvements (#318)
* Vector devirtualization and interface segregation

* Add microbenchmarks

* Fix tests

* Fix coverage
2022-10-13 23:39:02 -07:00
James Courtney 95e3114371
VTable BE enhancements (#316)
* Make BE vtables safe

* Tests
2022-10-11 15:59:55 -07:00
James Courtney e17630a519
Merge IInputBuffer2 -> IInputBuffer (#315)
* Merge IInputBuffer2 -> IInputBuffer

* Remove dead code
2022-10-11 02:08:29 -07:00
James Courtney ec131430cd
Clean up unions (#314)
* Reduce number of built-in generics, remove switch and action methods from unions

* Delete old test file
2022-10-10 23:45:01 -07:00
James Courtney 23f1960c1b
Reduce Code Duplication (#313)
Reduce code duplication by overgenerating serializers and using well-known namespaces.
2022-10-10 22:56:10 -07:00
Jonathan Chambers 1c411cfda2
Add fs_preserveFieldCasing attribute. (#306)
This enables overriding the behavior of --normalize-field-names at the
field, struct, or table level.
2022-10-05 01:37:54 -07:00
James Courtney c253a44007
Update samples to 6.3.3 (#310) 2022-10-01 22:52:56 -07:00
James Courtney 6ac06752af
Union visitors (#309)
* Union visitors

* Fix up stuff

* Fix UT
2022-09-30 23:36:18 -07:00
Tyler Colbert cd7b5f708a
Increase number of Union types created (#308)
Co-authored-by: Tyler Colbert <james.colbert@hexagon.com>
2022-09-29 23:24:28 -07:00
James Courtney f37672c598
Fix Null Reference with Recursive Unions (#300) 2022-09-12 02:21:48 -07:00
James Courtney 78b411a698
Project status information (#296) 2022-05-31 01:56:01 -07:00
James Courtney 1d9d224554
Fix 'code unreachable' warning (#292) 2022-04-25 20:03:46 -07:00
James Courtney 567b25a274
Update samples to 6.3.0 (#291) 2022-04-24 23:09:24 -07:00
James Courtney f93b855a18
Fix circular initialization/validation issues. (#290) 2022-04-24 02:24:28 -07:00
James Courtney 7a97087e31
Add Object Depth Limit (#289)
Addresses a denial of service security vulnerability where FlatSharp could be induced to stack overflow given a schema with a loop (or simply too deep) along with a malicious input.
2022-04-23 23:43:03 -07:00
James Courtney 593a94498c
Update to 6.2.1 (#285) 2022-03-15 00:40:48 -07:00
Matt Ickstadt 057b109bab
Support nan/inf default values (#284) 2022-03-13 22:55:28 -07:00
yak-shaver 4d413464fe
Fixed issue where a trailing backslash in the IncludePath resulted in the command exiting with code -1. (#283) 2022-03-13 22:54:42 -07:00
James Courtney 8881a32f2a
Update samples to 6.2.0 (#281) 2022-02-20 17:18:31 -08:00
James Courtney 6db36617f2
XML Documentation (#280)
Generate summary comments from FBS files
2022-02-15 00:41:20 -08:00
James Courtney 62a512e62b
Field Names Normalization (#279) 2022-02-14 01:14:07 -08:00