Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for byte (0.17 sec)

  1. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K 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 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