Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for byte (0.16 sec)

  1. doc/go1.22.html

      class.
    </p>
    <p>
      A consequence of this change is that some objects' addresses that were previously
      always aligned to a 16 byte (or higher) boundary will now only be aligned to an 8
      byte boundary.
      Some programs that use assembly instructions that require memory addresses to be
      more than 8-byte aligned and rely on the memory allocator's previous alignment behavior
      may break, but we expect such programs to be rare.
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </pre>
    </li>
    
    <li>
    Converting a value of a string type to a slice of bytes type
    yields a slice whose successive elements are the bytes of the string.
    
    <pre>
    []byte("hellø")   // []byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'}
    []byte("")        // []byte{}
    
    MyBytes("hellø")  // []byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'}
    </pre>
    </li>
    
    <li>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    </p>
    
    <pre>
    s := make([]byte, 2, 4)
    
    a0 := [0]byte(s)
    a1 := [1]byte(s[1:])     // a1[0] == s[1]
    a2 := [2]byte(s)         // a2[0] == s[0]
    a4 := [4]byte(s)         // panics: len([4]byte) > len(s)
    
    s0 := (*[0]byte)(s)      // s0 != nil
    s1 := (*[1]byte)(s[1:])  // &amp;s1[0] == &amp;s[1]
    s2 := (*[2]byte)(s)      // &amp;s2[0] == &amp;s[0]
    s4 := (*[4]byte)(s)      // panics: len([4]byte) > len(s)
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  4. doc/asm.html

    	MOVL	ptr+0(FP), AX
    	TESTL	$7, AX
    	JZ	2(PC)
    	MOVL	0, AX // crash with nil ptr deref
    	LEAL	ret_lo+4(FP), BX
    	// MOVQ (%EAX), %MM0
    	BYTE $0x0f; BYTE $0x6f; BYTE $0x00
    	// MOVQ %MM0, 0(%EBX)
    	BYTE $0x0f; BYTE $0x7f; BYTE $0x03
    	// EMMS
    	BYTE $0x0F; BYTE $0x77
    	RET
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top