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

Function alignedSize

json/codec.go:853–857  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

851}
852
853func alignedSize(t reflect.Type) uintptr {
854 a := t.Align()
855 s := t.Size()
856 return align(uintptr(a), uintptr(s))
857}
858
859func align(align, size uintptr) uintptr {
860 if align != 0 && (size%align) != 0 {

Callers 2

constructArrayCodecFunction · 0.70
constructSliceCodecFunction · 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…