dotnet-core/release-notes/5.0/api-diff/netstandard2.1/5.0_System.Buffers.Binary.md
Anirudh Agnihotry fdaef4427a
Api diff between net5.0 and netcoreapp3.1 & netstandard2.1 (#5610)
* .net shared framework changes

* standalone net 5.0 packages

* netstanard2.1 diff

* improving the directory structure

* adding a readme file

* aspnetcore shared framework changes

* remove wrong process type change diff

* adding comments about apis being to inbox from package
2020-11-18 10:40:01 -08:00

1.5 KiB

System.Buffers.Binary

 namespace System.Buffers.Binary {
     public static class BinaryPrimitives {
+        public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source);
+        public static double ReadDoubleLittleEndian(ReadOnlySpan<byte> source);
+        public static float ReadSingleBigEndian(ReadOnlySpan<byte> source);
+        public static float ReadSingleLittleEndian(ReadOnlySpan<byte> source);
+        public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value);
+        public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value);
+        public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value);
+        public static bool TryReadSingleLittleEndian(ReadOnlySpan<byte> source, out float value);
+        public static bool TryWriteDoubleBigEndian(Span<byte> destination, double value);
+        public static bool TryWriteDoubleLittleEndian(Span<byte> destination, double value);
+        public static bool TryWriteSingleBigEndian(Span<byte> destination, float value);
+        public static bool TryWriteSingleLittleEndian(Span<byte> destination, float value);
+        public static void WriteDoubleBigEndian(Span<byte> destination, double value);
+        public static void WriteDoubleLittleEndian(Span<byte> destination, double value);
+        public static void WriteSingleBigEndian(Span<byte> destination, float value);
+        public static void WriteSingleLittleEndian(Span<byte> destination, float value);
     }
 }