From 5361b747b732cf6cf183591b7a66b83fb6fab29f Mon Sep 17 00:00:00 2001
From: Robert Griesemer Package
The built-in package unsafe
unsafe
, known to the compiler,
provides facilities for low-level programming including operations
that violate the type system. A package using unsafe
-must be vetted manually for type safety. The package provides the
-following interface:
+must be vetted manually for type safety and may not be portable.
+The package provides the following interface:
@@ -6223,10 +6223,11 @@Package
unsafe
-Any pointer or value of underlying type uintptr
can be converted to
-a Pointer
type and vice versa.
A Pointer
is a pointer type but a Pointer
value may not be dereferenced.
+Any pointer or value of underlying type uintptr
can be converted to
+a Pointer
type and vice versa.
+The effect of converting between Pointer
and uintptr
is implementation-defined.