kubernetes/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go

const UnsafeEnabled

type Pointer

type offset

// offsetOf returns a field offset for the struct field.
func offsetOf(f reflect.StructField, x exporter) offset {}

// IsValid reports whether the offset is valid.
func (f offset) IsValid() bool {}

var invalidOffset

var zeroOffset

type pointer

// pointerOf returns p as a pointer.
func pointerOf(p Pointer) pointer {}

// pointerOfValue returns v as a pointer.
func pointerOfValue(v reflect.Value) pointer {}

// pointerOfIface returns the pointer portion of an interface.
func pointerOfIface(v any) pointer {}

// IsNil reports whether the pointer is nil.
func (p pointer) IsNil() bool {}

// Apply adds an offset to the pointer to derive a new pointer
// to a specified field. The pointer must be valid and pointing at a struct.
func (p pointer) Apply(f offset) pointer {}

// AsValueOf treats p as a pointer to an object of type t and returns the value.
// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t))
func (p pointer) AsValueOf(t reflect.Type) reflect.Value {}

// AsIfaceOf treats p as a pointer to an object of type t and returns the value.
// It is equivalent to p.AsValueOf(t).Interface()
func (p pointer) AsIfaceOf(t reflect.Type) any {}

func (p pointer) Bool() *bool                           {}

func (p pointer) BoolPtr() **bool                       {}

func (p pointer) BoolSlice() *[]bool                    {}

func (p pointer) Int32() *int32                         {}

func (p pointer) Int32Ptr() **int32                     {}

func (p pointer) Int32Slice() *[]int32                  {}

func (p pointer) Int64() *int64                         {}

func (p pointer) Int64Ptr() **int64                     {}

func (p pointer) Int64Slice() *[]int64                  {}

func (p pointer) Uint32() *uint32                       {}

func (p pointer) Uint32Ptr() **uint32                   {}

func (p pointer) Uint32Slice() *[]uint32                {}

func (p pointer) Uint64() *uint64                       {}

func (p pointer) Uint64Ptr() **uint64                   {}

func (p pointer) Uint64Slice() *[]uint64                {}

func (p pointer) Float32() *float32                     {}

func (p pointer) Float32Ptr() **float32                 {}

func (p pointer) Float32Slice() *[]float32              {}

func (p pointer) Float64() *float64                     {}

func (p pointer) Float64Ptr() **float64                 {}

func (p pointer) Float64Slice() *[]float64              {}

func (p pointer) String() *string                       {}

func (p pointer) StringPtr() **string                   {}

func (p pointer) StringSlice() *[]string                {}

func (p pointer) Bytes() *[]byte                        {}

func (p pointer) BytesPtr() **[]byte                    {}

func (p pointer) BytesSlice() *[][]byte                 {}

func (p pointer) WeakFields() *weakFields               {}

func (p pointer) Extensions() *map[int32]ExtensionField {}

func (p pointer) Elem() pointer {}

// PointerSlice loads []*T from p as a []pointer.
// The value returned is aliased with the original slice.
// This behavior differs from the implementation in pointer_reflect.go.
func (p pointer) PointerSlice() []pointer {}

// AppendPointerSlice appends v to p, which must be a []*T.
func (p pointer) AppendPointerSlice(v pointer) {}

// SetPointer sets *p to v.
func (p pointer) SetPointer(v pointer) {}

func (p pointer) growBoolSlice(addCap int) {}

func (p pointer) growInt32Slice(addCap int) {}

func (p pointer) growUint32Slice(addCap int) {}

func (p pointer) growFloat32Slice(addCap int) {}

func (p pointer) growInt64Slice(addCap int) {}

func (p pointer) growUint64Slice(addCap int) {}

func (p pointer) growFloat64Slice(addCap int) {}

const _

func (Export) MessageStateOf(p Pointer) *messageState {}

func (ms *messageState) pointer() pointer {}

func (ms *messageState) messageInfo() *MessageInfo {}

func (ms *messageState) LoadMessageInfo() *MessageInfo {}

func (ms *messageState) StoreMessageInfo(mi *MessageInfo) {}

type atomicNilMessage

func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper {}