We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbabe8 commit 11ec59aCopy full SHA for 11ec59a
src/unsafe/unsafe.go
@@ -187,6 +187,7 @@ type Pointer *ArbitraryType
187
// The size does not include any memory possibly referenced by x.
188
// For instance, if x is a slice, Sizeof returns the size of the slice
189
// descriptor, not the size of the memory referenced by the slice.
190
+// For a struct, the size includes any padding introduced by field alignment.
191
// The return value of Sizeof is a Go constant.
192
func Sizeof(x ArbitraryType) uintptr
193
0 commit comments