alanmcgovern / Mono.Nat

UPNP and NAT-PMP port forwarding for .NET
https://github.com/mono/Mono.Nat
MIT License
160 stars 156 forks source link

[core] Do not use System.Memory for NetStandard 2.0 #20

Closed alanmcgovern closed 3 years ago

alanmcgovern commented 3 years ago

We can write big-endian numbers in all platforms with a 1-liner (more or less).

The ArrayPool can be implemented in a simple way for .NET Standard 2.0 (cache 1 array), and for all newer iterations of .NET Standard we can depend on ArrayPool.

alanmcgovern commented 3 years ago

@Bond-009 These are the changes I referred to in the other PR