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

Function alignedSize

proto/slice.go:119–123  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

117}
118
119func alignedSize(t reflect.Type) uintptr {
120 a := t.Align()
121 s := t.Size()
122 return align(uintptr(a), uintptr(s))
123}
124
125func align(align, size uintptr) uintptr {
126 if align != 0 && (size%align) != 0 {

Callers 3

sliceSizeFuncOfFunction · 0.70
sliceEncodeFuncOfFunction · 0.70
sliceDecodeFuncOfFunction · 0.70

Calls 2

alignFunction · 0.70
SizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…