sys: golang.org/x/sys/internal/unsafeheader Index | Files

package unsafeheader

import "golang.org/x/sys/internal/unsafeheader"

Package unsafeheader contains header declarations for the Go runtime's slice and string implementations.

This package allows x/sys to use types equivalent to reflect.SliceHeader and reflect.StringHeader without introducing a dependency on the (relatively heavy) "reflect" package.

Index

Package Files

unsafeheader.go

type Slice Uses

type Slice struct {
    Data unsafe.Pointer
    Len  int
    Cap  int
}

Slice is the runtime representation of a slice. It cannot be used safely or portably and its representation may change in a later release.

type String Uses

type String struct {
    Data unsafe.Pointer
    Len  int
}

String is the runtime representation of a string. It cannot be used safely or portably and its representation may change in a later release.

Package unsafeheader imports 1 packages (graph) and is imported by 5 packages. Updated 2020-06-29. Refresh now. Tools for package owners.