Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-preview5_System.Runtime.InteropServices.md « Microsoft.NETCore.App « preview5 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 203cb608b5d803dabe66b95bb1e9228b6e75c55f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# System.Runtime.InteropServices

``` diff
 namespace System.Runtime.InteropServices {
-    public ref struct AnsiStringMarshaller {
-        public AnsiStringMarshaller(string? str);
-        public AnsiStringMarshaller(string? str, Span<byte> buffer);
-        public void FreeNative();
-        public unsafe void FromNativeValue(byte* value);
-        public string? ToManaged();
-        public unsafe byte* ToNativeValue();
-    }
-    public ref struct ArrayMarshaller<T> {
-        public ArrayMarshaller(int sizeOfNativeElement);
-        public ArrayMarshaller(T[]? array, int sizeOfNativeElement);
-        public ArrayMarshaller(T[]? array, Span<byte> buffer, int sizeOfNativeElement);
-        public void FreeNative();
-        public unsafe void FromNativeValue(byte* value);
-        public Span<T> GetManagedValuesDestination(int length);
-        public ReadOnlySpan<T> GetManagedValuesSource();
-        public Span<byte> GetNativeValuesDestination();
-        public ReadOnlySpan<byte> GetNativeValuesSource(int length);
-        public ref byte GetPinnableReference();
-        public T[]? ToManaged();
-        public unsafe byte* ToNativeValue();
-    }
-    public sealed class CustomTypeMarshallerAttribute : Attribute {
-        public CustomTypeMarshallerAttribute(Type managedType, CustomTypeMarshallerKind marshallerKind = CustomTypeMarshallerKind.Value);
-        public int BufferSize { get; set; }
-        public CustomTypeMarshallerDirection Direction { get; set; }
-        public CustomTypeMarshallerFeatures Features { get; set; }
-        public Type ManagedType { get; }
-        public CustomTypeMarshallerKind MarshallerKind { get; }
-        public struct GenericPlaceholder
-    }
-    public enum CustomTypeMarshallerDirection {
-        In = 1,
-        None = 0,
-        Out = 2,
-        Ref = 3,
-    }
-    public enum CustomTypeMarshallerFeatures {
-        CallerAllocatedBuffer = 2,
-        None = 0,
-        TwoStageMarshalling = 4,
-        UnmanagedResources = 1,
-    }
-    public enum CustomTypeMarshallerKind {
-        LinearCollection = 1,
-        Value = 0,
-    }
-    public sealed class MarshalUsingAttribute : Attribute {
-        public const string ReturnsCountValue = "return-value";
-        public MarshalUsingAttribute();
-        public MarshalUsingAttribute(Type nativeType);
-        public int ConstantElementCount { get; set; }
-        public string CountElementName { get; set; }
-        public int ElementIndirectionDepth { get; set; }
-        public Type? NativeType { get; }
-    }
-    public sealed class NativeMarshallingAttribute : Attribute {
-        public NativeMarshallingAttribute(Type nativeType);
-        public Type NativeType { get; }
-    }
     public static class NativeMemory {
+        public unsafe static void ZeroMemory(void* ptr, UIntPtr byteCount);
     }
     public readonly struct NFloat : IAdditionOperators<NFloat, NFloat, NFloat>, IAdditiveIdentity<NFloat, NFloat>, IBinaryFloatingPointIeee754<NFloat>, IBinaryNumber<NFloat>, IBitwiseOperators<NFloat, NFloat, NFloat>, IComparable, IComparable<NFloat>, IComparisonOperators<NFloat, NFloat>, IDecrementOperators<NFloat>, IDivisionOperators<NFloat, NFloat, NFloat>, IEqualityOperators<NFloat, NFloat>, IEquatable<NFloat>, IExponentialFunctions<NFloat>, IFloatingPoint<NFloat>, IFloatingPointIeee754<NFloat>, IFormattable, IHyperbolicFunctions<NFloat>, IIncrementOperators<NFloat>, ILogarithmicFunctions<NFloat>, IMinMaxValue<NFloat>, IModulusOperators<NFloat, NFloat, NFloat>, IMultiplicativeIdentity<NFloat, NFloat>, IMultiplyOperators<NFloat, NFloat, NFloat>, INumber<NFloat>, INumberBase<NFloat>, IParsable<NFloat>, IPowerFunctions<NFloat>, IRootFunctions<NFloat>, ISignedNumber<NFloat>, ISpanFormattable, ISpanParsable<NFloat>, ISubtractionOperators<NFloat, NFloat, NFloat>, ITrigonometricFunctions<NFloat>, IUnaryNegationOperators<NFloat, NFloat>, IUnaryPlusOperators<NFloat, NFloat> {
+        static int System.Numerics.INumberBase<System.Runtime.InteropServices.NFloat>.Radix { get; }
-        public static NFloat CreateChecked<TOther>(TOther value) where TOther : INumber<TOther>;
-        public static NFloat CreateSaturating<TOther>(TOther value) where TOther : INumber<TOther>;
-        public static NFloat CreateTruncating<TOther>(TOther value) where TOther : INumber<TOther>;
+        public static NFloat Exp10(NFloat x);
+        public static NFloat Exp10M1(NFloat x);
+        public static NFloat Exp2(NFloat x);
+        public static NFloat Exp2M1(NFloat x);
+        public static NFloat ExpM1(NFloat x);
+        public static bool IsEvenInteger(NFloat value);
+        public static bool IsInteger(NFloat value);
+        public static bool IsOddInteger(NFloat value);
+        public static bool IsPositive(NFloat value);
+        public static bool IsRealNumber(NFloat value);
+        public static NFloat Log10P1(NFloat x);
+        public static NFloat Log2P1(NFloat x);
+        public static NFloat LogP1(NFloat x);
+        public static NFloat MaxMagnitudeNumber(NFloat x, NFloat y);
+        public static NFloat MaxNumber(NFloat x, NFloat y);
+        public static NFloat MinMagnitudeNumber(NFloat x, NFloat y);
+        public static NFloat MinNumber(NFloat x, NFloat y);
+        public static explicit operator checked byte (NFloat value);
+        public static explicit operator checked char (NFloat value);
+        public static explicit operator checked short (NFloat value);
+        public static explicit operator checked int (NFloat value);
+        public static explicit operator checked long (NFloat value);
+        public static explicit operator checked Int128 (NFloat value);
+        public static explicit operator checked IntPtr (NFloat value);
+        public static explicit operator checked sbyte (NFloat value);
+        public static explicit operator checked ushort (NFloat value);
+        public static explicit operator checked uint (NFloat value);
+        public static explicit operator checked ulong (NFloat value);
+        public static explicit operator checked UInt128 (NFloat value);
+        public static explicit operator checked UIntPtr (NFloat value);
+        public static explicit operator NFloat (Int128 value);
+        public static explicit operator Half (NFloat value);
+        public static explicit operator Int128 (NFloat value);
+        public static explicit operator UInt128 (NFloat value);
+        public static explicit operator NFloat (UInt128 value);
+        public static implicit operator NFloat (Half value);
-        long IFloatingPoint<NFloat>.GetExponentShortestBitLength();
+        int IFloatingPoint<NFloat>.GetExponentShortestBitLength();
-        long IFloatingPoint<NFloat>.GetSignificandBitLength();
+        int IFloatingPoint<NFloat>.GetSignificandBitLength();
+        bool IFloatingPoint<NFloat>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten);
+        bool IFloatingPoint<NFloat>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten);
+        static bool INumberBase<NFloat>.IsCanonical(NFloat value);
+        static bool INumberBase<NFloat>.IsComplexNumber(NFloat value);
+        static bool INumberBase<NFloat>.IsImaginaryNumber(NFloat value);
+        static bool INumberBase<NFloat>.IsZero(NFloat value);
+        static bool INumberBase<NFloat>.TryConvertFromChecked<TOther>(TOther value, out NFloat result);
+        static bool INumberBase<NFloat>.TryConvertFromSaturating<TOther>(TOther value, out NFloat result);
+        static bool INumberBase<NFloat>.TryConvertFromTruncating<TOther>(TOther value, out NFloat result);
+        static bool INumberBase<NFloat>.TryConvertToChecked<TOther>(NFloat value, out TOther result);
+        static bool INumberBase<NFloat>.TryConvertToSaturating<TOther>(NFloat value, out TOther result);
+        static bool INumberBase<NFloat>.TryConvertToTruncating<TOther>(NFloat value, out TOther result);
-        public static bool TryCreate<TOther>(TOther value, out NFloat result) where TOther : INumber<TOther>;
     }
-    public ref struct PointerArrayMarshaller<T> where T : struct {
-        public PointerArrayMarshaller(int sizeOfNativeElement);
-        public PointerArrayMarshaller(T*[]? array, int sizeOfNativeElement);
-        public PointerArrayMarshaller(T*[]? array, Span<byte> buffer, int sizeOfNativeElement);
-        public void FreeNative();
-        public unsafe void FromNativeValue(byte* value);
-        public Span<IntPtr> GetManagedValuesDestination(int length);
-        public ReadOnlySpan<IntPtr> GetManagedValuesSource();
-        public Span<byte> GetNativeValuesDestination();
-        public ReadOnlySpan<byte> GetNativeValuesSource(int length);
-        public ref byte GetPinnableReference();
-        public T*[]? ToManaged();
-        public unsafe byte* ToNativeValue();
-    }
-    public ref struct Utf16StringMarshaller {
-        public Utf16StringMarshaller(string? str);
-        public Utf16StringMarshaller(string? str, Span<ushort> buffer);
-        public void FreeNative();
-        public unsafe void FromNativeValue(ushort* value);
-        public ref ushort GetPinnableReference();
-        public string? ToManaged();
-        public unsafe ushort* ToNativeValue();
-    }
-    public ref struct Utf8StringMarshaller {
-        public Utf8StringMarshaller(string? str);
-        public Utf8StringMarshaller(string? str, Span<byte> buffer);
-        public void FreeNative();
-        public unsafe void FromNativeValue(byte* value);
-        public string? ToManaged();
-        public unsafe byte* ToNativeValue();
-    }
 }
```