Skip to content

Commit 2158e83

Browse files
authored
Add System.Runtime.CompilerServices.Unsafe 6.0.0 and System.Text.Encoding.CodePages 6.0.0 (#335)
1 parent bbc3d7c commit 2158e83

File tree

10 files changed

+525
-0
lines changed

10 files changed

+525
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))/dir.props" />
3+
4+
<PropertyGroup>
5+
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net461</TargetFrameworks>
6+
<NuspecFile>$(ArtifactsBinDir)system.runtime.compilerservices.unsafe/6.0.0/system.runtime.compilerservices.unsafe.nuspec</NuspecFile>
7+
</PropertyGroup>
8+
9+
<PropertyGroup>
10+
<OutputPath>$(ArtifactsBinDir)system.runtime.compilerservices.unsafe/6.0.0/ref/</OutputPath>
11+
<IntermediateOutputPath>$(ArtifactsObjDir)system.runtime.compilerservices.unsafe/6.0.0</IntermediateOutputPath>
12+
</PropertyGroup>
13+
14+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
15+
<OutputPath>$(ArtifactsBinDir)system.runtime.compilerservices.unsafe/6.0.0/lib/</OutputPath>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
19+
<OutputPath>$(ArtifactsBinDir)system.runtime.compilerservices.unsafe/6.0.0/lib/</OutputPath>
20+
</PropertyGroup>
21+
22+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
23+
<OutputPath>$(ArtifactsBinDir)system.runtime.compilerservices.unsafe/6.0.0/lib/</OutputPath>
24+
</PropertyGroup>
25+
26+
<ItemGroup>
27+
<Compile Include="**/ref/$(TargetFramework)/*.cs" />
28+
<Compile Include="**/lib/$(TargetFramework)/*.cs" />
29+
</ItemGroup>
30+
31+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
32+
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
33+
<PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
34+
<PackageReference Include="System.Reflection" Version="4.3.0" />
35+
</ItemGroup>
36+
37+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
38+
<PackageReference Include="NETStandard.Library" Version="1.6.1" />
39+
<PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
40+
<PackageReference Include="System.Reflection" Version="4.3.0" />
41+
</ItemGroup>
42+
43+
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
44+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net461" Version="1.0.2" />
45+
<PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
46+
<PackageReference Include="System.Reflection" Version="4.3.0" />
47+
</ItemGroup>
48+
49+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
8+
using System;
9+
using System.Diagnostics;
10+
using System.Reflection;
11+
using System.Runtime.CompilerServices;
12+
using System.Security;
13+
14+
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
15+
[assembly: AllowPartiallyTrustedCallers]
16+
[assembly: ReferenceAssembly]
17+
[assembly: AssemblyTitle("System.Runtime.CompilerServices.Unsafe")]
18+
[assembly: AssemblyDescription("System.Runtime.CompilerServices.Unsafe")]
19+
[assembly: AssemblyDefaultAlias("System.Runtime.CompilerServices.Unsafe")]
20+
[assembly: AssemblyCompany("Microsoft Corporation")]
21+
[assembly: AssemblyProduct("Microsoft® .NET Framework")]
22+
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
23+
[assembly: AssemblyFileVersion("6.0.21.52210")]
24+
[assembly: AssemblyInformationalVersion("6.0.21.52210 built by: SOURCEBUILD")]
25+
[assembly: CLSCompliant(true)]
26+
[assembly: AssemblyMetadata("", "")]
27+
[assembly: AssemblyVersion("6.0.0.0")]
28+
29+
30+
31+
32+
namespace System.Runtime.CompilerServices
33+
{
34+
public static partial class Unsafe
35+
{
36+
public static ref T AddByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
37+
public static ref T AddByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
38+
public unsafe static void* Add<T>(void* source, int elementOffset) { throw null; }
39+
public static ref T Add<T>(ref T source, int elementOffset) { throw null; }
40+
public static ref T Add<T>(ref T source, System.IntPtr elementOffset) { throw null; }
41+
public static ref T Add<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
42+
public static bool AreSame<T>(ref T left, ref T right) { throw null; }
43+
public unsafe static void* AsPointer<T>(ref T value) { throw null; }
44+
public unsafe static ref T AsRef<T>(void* source) { throw null; }
45+
public static ref T AsRef<T>(in T source) { throw null; }
46+
public static T As<T>(object o) where T : class { throw null; }
47+
public static ref TTo As<TFrom, TTo>(ref TFrom source) { throw null; }
48+
public static System.IntPtr ByteOffset<T>(ref T origin, ref T target) { throw null; }
49+
public static void CopyBlock(ref byte destination, ref byte source, uint byteCount) { }
50+
public unsafe static void CopyBlock(void* destination, void* source, uint byteCount) { }
51+
public static void CopyBlockUnaligned(ref byte destination, ref byte source, uint byteCount) { }
52+
public unsafe static void CopyBlockUnaligned(void* destination, void* source, uint byteCount) { }
53+
public unsafe static void Copy<T>(void* destination, ref T source) { }
54+
public unsafe static void Copy<T>(ref T destination, void* source) { }
55+
public static void InitBlock(ref byte startAddress, byte value, uint byteCount) { }
56+
public unsafe static void InitBlock(void* startAddress, byte value, uint byteCount) { }
57+
public static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount) { }
58+
public unsafe static void InitBlockUnaligned(void* startAddress, byte value, uint byteCount) { }
59+
public static bool IsAddressGreaterThan<T>(ref T left, ref T right) { throw null; }
60+
public static bool IsAddressLessThan<T>(ref T left, ref T right) { throw null; }
61+
public static bool IsNullRef<T>(ref T source) { throw null; }
62+
public static ref T NullRef<T>() { throw null; }
63+
public static T ReadUnaligned<T>(ref byte source) { throw null; }
64+
public unsafe static T ReadUnaligned<T>(void* source) { throw null; }
65+
public unsafe static T Read<T>(void* source) { throw null; }
66+
public static int SizeOf<T>() { throw null; }
67+
public static void SkipInit<T>(out T value) { throw null; }
68+
public static ref T SubtractByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
69+
public static ref T SubtractByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
70+
public unsafe static void* Subtract<T>(void* source, int elementOffset) { throw null; }
71+
public static ref T Subtract<T>(ref T source, int elementOffset) { throw null; }
72+
public static ref T Subtract<T>(ref T source, System.IntPtr elementOffset) { throw null; }
73+
public static ref T Subtract<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
74+
public static ref T Unbox<T>(object box) where T : struct { throw null; }
75+
public static void WriteUnaligned<T>(ref byte destination, T value) { }
76+
public unsafe static void WriteUnaligned<T>(void* destination, T value) { }
77+
public unsafe static void Write<T>(void* destination, T value) { }
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
8+
using System;
9+
using System.Diagnostics;
10+
using System.Reflection;
11+
using System.Runtime.CompilerServices;
12+
using System.Security;
13+
14+
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
15+
[assembly: AllowPartiallyTrustedCallers]
16+
[assembly: ReferenceAssembly]
17+
[assembly: AssemblyTitle("System.Runtime.CompilerServices.Unsafe")]
18+
[assembly: AssemblyDescription("System.Runtime.CompilerServices.Unsafe")]
19+
[assembly: AssemblyDefaultAlias("System.Runtime.CompilerServices.Unsafe")]
20+
[assembly: AssemblyCompany("Microsoft Corporation")]
21+
[assembly: AssemblyProduct("Microsoft® .NET Framework")]
22+
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
23+
[assembly: AssemblyFileVersion("6.0.21.52210")]
24+
[assembly: AssemblyInformationalVersion("6.0.21.52210 built by: SOURCEBUILD")]
25+
[assembly: CLSCompliant(true)]
26+
[assembly: AssemblyMetadata("", "")]
27+
[assembly: AssemblyVersion("6.0.0.0")]
28+
29+
30+
31+
32+
namespace System.Runtime.CompilerServices
33+
{
34+
public static partial class Unsafe
35+
{
36+
public static ref T AddByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
37+
public static ref T AddByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
38+
public unsafe static void* Add<T>(void* source, int elementOffset) { throw null; }
39+
public static ref T Add<T>(ref T source, int elementOffset) { throw null; }
40+
public static ref T Add<T>(ref T source, System.IntPtr elementOffset) { throw null; }
41+
public static ref T Add<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
42+
public static bool AreSame<T>(ref T left, ref T right) { throw null; }
43+
public unsafe static void* AsPointer<T>(ref T value) { throw null; }
44+
public unsafe static ref T AsRef<T>(void* source) { throw null; }
45+
public static ref T AsRef<T>(in T source) { throw null; }
46+
public static T As<T>(object o) where T : class { throw null; }
47+
public static ref TTo As<TFrom, TTo>(ref TFrom source) { throw null; }
48+
public static System.IntPtr ByteOffset<T>(ref T origin, ref T target) { throw null; }
49+
public static void CopyBlock(ref byte destination, ref byte source, uint byteCount) { }
50+
public unsafe static void CopyBlock(void* destination, void* source, uint byteCount) { }
51+
public static void CopyBlockUnaligned(ref byte destination, ref byte source, uint byteCount) { }
52+
public unsafe static void CopyBlockUnaligned(void* destination, void* source, uint byteCount) { }
53+
public unsafe static void Copy<T>(void* destination, ref T source) { }
54+
public unsafe static void Copy<T>(ref T destination, void* source) { }
55+
public static void InitBlock(ref byte startAddress, byte value, uint byteCount) { }
56+
public unsafe static void InitBlock(void* startAddress, byte value, uint byteCount) { }
57+
public static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount) { }
58+
public unsafe static void InitBlockUnaligned(void* startAddress, byte value, uint byteCount) { }
59+
public static bool IsAddressGreaterThan<T>(ref T left, ref T right) { throw null; }
60+
public static bool IsAddressLessThan<T>(ref T left, ref T right) { throw null; }
61+
public static bool IsNullRef<T>(ref T source) { throw null; }
62+
public static ref T NullRef<T>() { throw null; }
63+
public static T ReadUnaligned<T>(ref byte source) { throw null; }
64+
public unsafe static T ReadUnaligned<T>(void* source) { throw null; }
65+
public unsafe static T Read<T>(void* source) { throw null; }
66+
public static int SizeOf<T>() { throw null; }
67+
public static void SkipInit<T>(out T value) { throw null; }
68+
public static ref T SubtractByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
69+
public static ref T SubtractByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
70+
public unsafe static void* Subtract<T>(void* source, int elementOffset) { throw null; }
71+
public static ref T Subtract<T>(ref T source, int elementOffset) { throw null; }
72+
public static ref T Subtract<T>(ref T source, System.IntPtr elementOffset) { throw null; }
73+
public static ref T Subtract<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
74+
public static ref T Unbox<T>(object box) where T : struct { throw null; }
75+
public static void WriteUnaligned<T>(ref byte destination, T value) { }
76+
public unsafe static void WriteUnaligned<T>(void* destination, T value) { }
77+
public unsafe static void Write<T>(void* destination, T value) { }
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
// ------------------------------------------------------------------------------
5+
// Changes to this file must follow the http://aka.ms/api-review process.
6+
// ------------------------------------------------------------------------------
7+
8+
using System;
9+
using System.Diagnostics;
10+
using System.Reflection;
11+
using System.Runtime.CompilerServices;
12+
using System.Security;
13+
14+
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
15+
[assembly: AllowPartiallyTrustedCallers]
16+
[assembly: ReferenceAssembly]
17+
[assembly: AssemblyTitle("System.Runtime.CompilerServices.Unsafe")]
18+
[assembly: AssemblyDescription("System.Runtime.CompilerServices.Unsafe")]
19+
[assembly: AssemblyDefaultAlias("System.Runtime.CompilerServices.Unsafe")]
20+
[assembly: AssemblyCompany("Microsoft Corporation")]
21+
[assembly: AssemblyProduct("Microsoft® .NET Framework")]
22+
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
23+
[assembly: AssemblyFileVersion("6.0.21.52210")]
24+
[assembly: AssemblyInformationalVersion("6.0.21.52210 built by: SOURCEBUILD")]
25+
[assembly: CLSCompliant(true)]
26+
[assembly: AssemblyMetadata("", "")]
27+
[assembly: AssemblyVersion("6.0.0.0")]
28+
29+
30+
31+
32+
namespace System.Runtime.CompilerServices
33+
{
34+
public static partial class Unsafe
35+
{
36+
public static ref T AddByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
37+
public static ref T AddByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
38+
public unsafe static void* Add<T>(void* source, int elementOffset) { throw null; }
39+
public static ref T Add<T>(ref T source, int elementOffset) { throw null; }
40+
public static ref T Add<T>(ref T source, System.IntPtr elementOffset) { throw null; }
41+
public static ref T Add<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
42+
public static bool AreSame<T>(ref T left, ref T right) { throw null; }
43+
public unsafe static void* AsPointer<T>(ref T value) { throw null; }
44+
public unsafe static ref T AsRef<T>(void* source) { throw null; }
45+
public static ref T AsRef<T>(in T source) { throw null; }
46+
public static T As<T>(object o) where T : class { throw null; }
47+
public static ref TTo As<TFrom, TTo>(ref TFrom source) { throw null; }
48+
public static System.IntPtr ByteOffset<T>(ref T origin, ref T target) { throw null; }
49+
public static void CopyBlock(ref byte destination, ref byte source, uint byteCount) { }
50+
public unsafe static void CopyBlock(void* destination, void* source, uint byteCount) { }
51+
public static void CopyBlockUnaligned(ref byte destination, ref byte source, uint byteCount) { }
52+
public unsafe static void CopyBlockUnaligned(void* destination, void* source, uint byteCount) { }
53+
public unsafe static void Copy<T>(void* destination, ref T source) { }
54+
public unsafe static void Copy<T>(ref T destination, void* source) { }
55+
public static void InitBlock(ref byte startAddress, byte value, uint byteCount) { }
56+
public unsafe static void InitBlock(void* startAddress, byte value, uint byteCount) { }
57+
public static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount) { }
58+
public unsafe static void InitBlockUnaligned(void* startAddress, byte value, uint byteCount) { }
59+
public static bool IsAddressGreaterThan<T>(ref T left, ref T right) { throw null; }
60+
public static bool IsAddressLessThan<T>(ref T left, ref T right) { throw null; }
61+
public static bool IsNullRef<T>(ref T source) { throw null; }
62+
public static ref T NullRef<T>() { throw null; }
63+
public static T ReadUnaligned<T>(ref byte source) { throw null; }
64+
public unsafe static T ReadUnaligned<T>(void* source) { throw null; }
65+
public unsafe static T Read<T>(void* source) { throw null; }
66+
public static int SizeOf<T>() { throw null; }
67+
public static void SkipInit<T>(out T value) { throw null; }
68+
public static ref T SubtractByteOffset<T>(ref T source, System.IntPtr byteOffset) { throw null; }
69+
public static ref T SubtractByteOffset<T>(ref T source, System.UIntPtr byteOffset) { throw null; }
70+
public unsafe static void* Subtract<T>(void* source, int elementOffset) { throw null; }
71+
public static ref T Subtract<T>(ref T source, int elementOffset) { throw null; }
72+
public static ref T Subtract<T>(ref T source, System.IntPtr elementOffset) { throw null; }
73+
public static ref T Subtract<T>(ref T source, System.UIntPtr elementOffset) { throw null; }
74+
public static ref T Unbox<T>(object box) where T : struct { throw null; }
75+
public static void WriteUnaligned<T>(ref byte destination, T value) { }
76+
public unsafe static void WriteUnaligned<T>(void* destination, T value) { }
77+
public unsafe static void Write<T>(void* destination, T value) { }
78+
}
79+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
3+
<metadata>
4+
<id>System.Runtime.CompilerServices.Unsafe</id>
5+
<version>6.0.0</version>
6+
<authors>Microsoft</authors>
7+
<license type="expression">MIT</license>
8+
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
9+
<projectUrl>https://dot.net/</projectUrl>
10+
<description>Provides the System.Runtime.CompilerServices.Unsafe class, which provides generic, low-level functionality for manipulating pointers.
11+
12+
Commonly Used Types:
13+
System.Runtime.CompilerServices.Unsafe</description>
14+
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes>
15+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
16+
<serviceable>true</serviceable>
17+
<repository type="git" url="https://github.com/dotnet/runtime" commit="4822e3c3aa77eb82b2fb33c9321f923cf11ddde6" />
18+
<dependencies>
19+
<group targetFramework=".NETFramework4.6.1" />
20+
<group targetFramework=".NETCoreApp3.1" />
21+
<group targetFramework="net6.0" />
22+
<group targetFramework=".NETStandard2.0" />
23+
</dependencies>
24+
<frameworkAssemblies>
25+
<frameworkAssembly assemblyName="mscorlib" targetFramework=".NETFramework4.6.1" />
26+
</frameworkAssemblies>
27+
</metadata>
28+
</package>

0 commit comments

Comments
 (0)