MCPcopy Create free account
hub / github.com/segmentio/encoding / pointer

Method pointer

proto/struct.go:44–46  ·  view source on GitHub ↗
(p unsafe.Pointer)

Source from the content-addressed store, hash-verified

42}
43
44func (f *structField) pointer(p unsafe.Pointer) unsafe.Pointer {
45 return unsafe.Pointer(uintptr(p) + uintptr(f.offset))
46}
47
48func (f *structField) makeFlags(base flags) flags {
49 return base | flags(f.flags&zigzag)

Callers 3

structSizeFuncOfFunction · 0.80
structEncodeFuncOfFunction · 0.80
structDecodeFuncOfFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected