Movatterモバイル変換


[0]ホーム

URL:


unsafeheader

packagestandard library
go1.25.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:1Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

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

This package allows packages that cannot import "reflect" to use types thatare tested to be equivalent to reflect.SliceHeader and reflect.StringHeader.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeSlice

type Slice struct {Dataunsafe.PointerLenintCapint}

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

Unlike reflect.SliceHeader, its Data field is sufficient to guarantee thedata it references will not be garbage collected.

typeString

type String struct {Dataunsafe.PointerLenint}

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

Unlike reflect.StringHeader, its Data field is sufficient to guarantee thedata it references will not be garbage collected.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp