go.unsafe
1.23.12.2
dotnet add package go.unsafe --version 1.23.12.2
NuGet\Install-Package go.unsafe -Version 1.23.12.2
<PackageReference Include="go.unsafe" Version="1.23.12.2" />
<PackageVersion Include="go.unsafe" Version="1.23.12.2" />
<PackageReference Include="go.unsafe" />
paket add go.unsafe --version 1.23.12.2
#r "nuget: go.unsafe, 1.23.12.2"
#:package go.unsafe@1.23.12.2
#addin nuget:?package=go.unsafe&version=1.23.12.2
#tool nuget:?package=go.unsafe&version=1.23.12.2
go.unsafe
Hand-implemented C# counterpart of the Go standard library's
unsafepackage, by go2cs.
Package unsafe contains operations that step around the type safety of Go programs. In Go it is a compiler intrinsic with no Go source to convert; this package is its hand-maintained managed implementation — pointer reinterpretation, Sizeof/Alignof/Offsetof, and the Slice/String/SliceData/StringData constructors — built over the go2cs runtime's ж<T> box and pinned-buffer machinery.
This package is a hand-maintained implementation of the Go standard library's unsafe API rather than converted Go source (the original is a compiler intrinsic). The go2cs implementation is distributed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- go.lib (>= 1.23.12.2)
NuGet packages (79)
Showing the top 5 NuGet packages that depend on go.unsafe:
| Package | Downloads |
|---|---|
|
go.internal.cpu
internal.cpu (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.bytealg
internal.bytealg (net10.0 - Release) -- C# project converted from Go source |
|
|
go.runtime
runtime (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.stringslite
internal.stringslite (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.abi
internal.abi (net10.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.