Home | History | Annotate | Download | only in doc

Lines Matching full:alignof

4313 unsafe.Alignof unsafe.Offsetof unsafe.Sizeof
6281 func Alignof(variable ArbitraryType) uintptr
6305 The functions <code>Alignof</code> and <code>Sizeof</code> take an expression <code>x</code>
6325 the variable's type's <i>alignment</i>. The function <code>Alignof</code>
6332 uintptr(unsafe.Pointer(&amp;x)) % unsafe.Alignof(x) == 0
6336 Calls to <code>Alignof</code>, <code>Offsetof</code>, and
6360 <li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1.
6363 <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of
6364 all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1.
6367 <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
6368 <code>unsafe.Alignof(x[0])</code>, but at least 1.