MCPcopy
hub / github.com/protocolbuffers/protobuf-go / MessageStateOf

Method MessageStateOf

internal/impl/pointer_unsafe.go:189–192  ·  view source on GitHub ↗
(p Pointer)

Source from the content-addressed store, hash-verified

187const _ = uint(unsafe.Sizeof(unsafe.Pointer(nil)) - unsafe.Sizeof(MessageState{}))
188
189func (Export) MessageStateOf(p Pointer) *messageState {
190 // Super-tricky - see documentation on MessageState.
191 return (*messageState)(unsafe.Pointer(p))
192}
193func (ms *messageState) pointer() pointer {
194 // Super-tricky - see documentation on MessageState.
195 return pointer{p: unsafe.Pointer(ms)}

Callers 15

ResetMethod · 0.80
ProtoReflectMethod · 0.80
ResetMethod · 0.80
ProtoReflectMethod · 0.80
ResetMethod · 0.80
ProtoReflectMethod · 0.80
ResetMethod · 0.80
ProtoReflectMethod · 0.80
ResetMethod · 0.80
ProtoReflectMethod · 0.80
ResetMethod · 0.80
ProtoReflectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected