Commit Graph

11 Commits

Author SHA1 Message Date
Pieter-Jan Briers
4de2e35e66 Add macOS CI for build-test 2021-05-02 09:25:26 +02:00
Ygg01
f28d1cb5e0 Add windows-latest to test targets (#1425)
Similar to https://github.com/space-wizards/space-station-14/pull/2634
2020-11-27 20:15:00 +01:00
DrSmugleaf
9ce2e3d451 Update build-test.yml dotnet-version to 5.0.100 (#1411) 2020-11-20 13:15:10 +01:00
Pieter-Jan Briers
cabb9859ec Move Lidgren to submodule 2020-10-10 23:32:37 +02:00
Pieter-Jan Briers
3648f43f5c Include NetSerializer as a submodule, add List<T> serializer. (#1195)
* Include NetSerializer as a submodule.

* NetSerializer list serializer.

* Update Actions workflows to handle the new submodule.

* Whoops
2020-07-28 18:56:20 -07:00
Tyler Young
faff0797bf Make Lidgren Use Spans & Shared Pool (#1140)
* make lidgren use spans everywhere where it can

convert custom pooling to shared array pool impl

add unit tests for read/write

add native socket extensions to socket so we can legit pass spans for SendTo/ReceiveFrom

bump version in lidgren csproj

replace some random "% 8" w/ "& 7"

more minor nullability hacks to fix static analysis complaints

made receiving packets use span

minor native sockets refactor to use pinvoke

add read/write constrained/prealloc'd bit stream impl to lidgren and update usages

fixed missing stream cleanup

remove outstanding stream cleanup since it refs buffer thru the class, can't read some other buf

apply suggestions from code review

remove unsafe cruft

* add tests to gh actions

* make stats use interpolation in tostring and remove m_bytesAllocated since it's all in the shared pool now

* this pr still open so fuck it

stats, human readability, faster BitsToHold methods

* add api compatible version of ReadBytes

* rename ReadOnlyStreamWrapper -> ReadOnlyWrapperStream

rename WriteOnlyStreamWrapper -> WriteOnlyWrapperStream

add AppendViaStream, AppenderStream impl

add and update documentation on read/write bytes methods

also fix some goofs
2020-06-24 04:09:20 +02:00
Pieter-Jan Briers
9b7b8023f2 Treat nullability warnings as errors in CI. 2020-06-12 14:22:58 +02:00
Pieter-Jan Briers
c5e1fbcbab Verbose logging on test. 2020-06-12 14:07:08 +02:00
Pieter-Jan Briers
b3f8e12739 Update .NET Core SDK version to latest on Actions. 2020-06-08 14:03:40 +02:00
Pieter-Jan Briers
761207fcb4 Update build-test.yml 2020-06-07 17:25:33 +02:00
Pieter-Jan Briers
096c47a1fe Create build-test.yml 2020-06-07 17:18:35 +02:00