~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/cmd/gc/unsafe.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
type Pointer uintptr // not really; filled in by compiler
12
12
 
13
 
func Offsetof(any) int
14
 
func Sizeof(any) int
15
 
func Alignof(any) int
 
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
 
16
18
func Typeof(i interface{}) (typ interface{})
17
19
func Reflect(i interface{}) (typ interface{}, addr Pointer)
18
20
func Unreflect(typ interface{}, addr Pointer) (ret interface{})