Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sizeof (0.17 sec)

  1. src/bytes/buffer_test.go

    	var buf Buffer
    	n := 0
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    		}
    		if nbytes != size {
    			t.Fatalf("WriteRune(%U) expected %d, got %d", r, size, nbytes)
    		}
    		n += size
    	}
    	b = b[0:n]
    
    	// Check the resulting bytes
    	if !Equal(buf.Bytes(), b) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    </pre>
    
    <p>
    A (variable of) type <code>T</code> has <i>variable size</i> if <code>T</code>
    is a <a href="#Type_parameter_declarations">type parameter</a>, or if it is an
    array or struct type containing elements
    or fields of variable size. Otherwise the size is <i>constant</i>.
    Calls to <code>Alignof</code>, <code>Offsetof</code>, and <code>Sizeof</code>
    are compile-time <a href="#Constant_expressions">constant expressions</a> of
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top