Source file src/cmd/gc/unsafe.go
1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // NOTE: If you change this file you must run "./mkbuiltin" 6 // to update builtin.c.boot. This is not done automatically 7 // to avoid depending on having a working compiler binary. 8 9 package PACKAGE 10 11 type Pointer uintptr // not really; filled in by compiler 12 13 // return types here are ignored; see unsafe.c 14 func Offsetof(any) uintptr 15 func Sizeof(any) uintptr 16 func Alignof(any) uintptr 17 18 func Typeof(i interface{}) (typ interface{}) 19 func Reflect(i interface{}) (typ interface{}, addr Pointer) 20 func Unreflect(typ interface{}, addr Pointer) (ret interface{}) 21 func New(typ interface{}) Pointer 22 func NewArray(typ interface{}, n int) Pointer