Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for mybytes (0.45 sec)

  1. test/fixedbugs/issue5704.go

    	}
    	if s == nil {
    		panic(arg + " == nil")
    	}
    }
    
    func main() {
    	checkBytes([]byte(""), `[]byte("")`)
    	checkBytes([]byte(mystring("")), `[]byte(mystring(""))`)
    	checkBytes(mybytes(""), `mybytes("")`)
    	checkBytes(mybytes(mystring("")), `mybytes(mystring(""))`)
    
    	checkRunes([]rune(""), `[]rune("")`)
    	checkRunes([]rune(mystring("")), `[]rune(mystring(""))`)
    	checkRunes(myrunes(""), `myrunes("")`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	{V((**byte)(nil)), V((**byte)(nil))},
    	{V((**MyByte)(nil)), V((**MyByte)(nil))},
    	{V((chan byte)(nil)), V((chan byte)(nil))},
    	{V((chan MyByte)(nil)), V((chan MyByte)(nil))},
    	{V(([]byte)(nil)), V(([]byte)(nil))},
    	{V(([]MyByte)(nil)), V(([]MyByte)(nil))},
    	{V((map[int]byte)(nil)), V((map[int]byte)(nil))},
    	{V((map[int]MyByte)(nil)), V((map[int]MyByte)(nil))},
    	{V((map[byte]int)(nil)), V((map[byte]int)(nil))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/encoding/xml/marshal_test.go

    	},
    	{
    		Value:         &Data{Bytes: []byte{}, Custom: MyBytes{}, Attr: []byte{}},
    		ExpectXML:     `<Data Attr=""><Bytes></Bytes><Custom></Custom></Data>`,
    		UnmarshalOnly: true,
    	},
    
    	// Check that []byte works, including named []byte types.
    	{
    		Value:     &Data{Bytes: []byte("ab"), Custom: MyBytes("cd"), Attr: []byte{'v'}},
    		ExpectXML: `<Data Attr="v"><Bytes>ab</Bytes><Custom>cd</Custom></Data>`,
    	},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  4. src/crypto/sha256/sha256block_arm64.s

    	VLD1	(R2), [V28.S4, V29.S4, V30.S4, V31.S4]     //load 64*4bytes K constant(K0-K63)
    
    blockloop:
    
    	VLD1.P	16(R1), [V4.B16]                            // load 16bytes message
    	VLD1.P	16(R1), [V5.B16]                            // load 16bytes message
    	VLD1.P	16(R1), [V6.B16]                            // load 16bytes message
    	VLD1.P	16(R1), [V7.B16]                            // load 16bytes message
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/typeparams.go

    type myByte1 []byte
    type myByte2 []byte
    func _[T interface{ []byte | myByte1 | myByte2 }] (x T, i, j, k int) { var _ T = x[i:j:k] }
    func _[T interface{ []byte | myByte1 | []int }] (x T, i, j, k int) { var _ T = x /* ERROR "no core type" */ [i:j:k] }
    
    func _[T interface{ []byte | myByte1 | myByte2 | string }] (x T, i, j, k int) { var _ T = x[i:j] }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    </pre>
    </li>
    
    <li>
    Converting a slice of bytes to a string type yields
    a string whose successive bytes are the elements of the slice.
    
    <pre>
    string([]byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'})   // "hellø"
    string([]byte{})                                     // ""
    string([]byte(nil))                                  // ""
    
    type MyBytes []byte
    string(MyBytes{'h', 'e', 'l', 'l', '\xc3', '\xb8'})  // "hellø"
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  7. test/typeparam/issue23536.go

    // converted to a string.  Same for slice of runes.
    
    package main
    
    type MyByte byte
    
    type MyRune rune
    
    func f[T []MyByte](x T) string {
    	return string(x)
    }
    
    func g[T []MyRune](x T) string {
    	return string(x)
    }
    
    func main() {
    	var y []MyByte
    	_ = f(y)
    	_ = string(y)
    
    	var z []MyRune
    	_ = g(z)
    	_ = string(z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 556 bytes
    - Viewed (0)
  8. test/fixedbugs/issue23814.go

    	// 4
    	_ = []byte("hellø") // []byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'}
    	_ = []byte("")      // []byte{}
    
    	_ = bytes("hellø") // []byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'}
    
    	_ = []myByte("world!")      // []myByte{'w', 'o', 'r', 'l', 'd', '!'}
    	_ = []myByte(myString("🌏")) // []myByte{'\xf0', '\x9f', '\x8c', '\x8f'}
    
    	// 5
    	_ = []rune(myString("白鵬翔")) // []rune{0x767d, 0x9d6c, 0x7fd4}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 15 00:06:24 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue23536.go

    // Test case where a slice of a user-defined byte type (not uint8 or byte) is
    // converted to a string.  Same for slice of runes.
    
    package main
    
    type MyByte byte
    
    type MyRune rune
    
    func main() {
    	var y []MyByte
    	_ = string(y)
    
    	var z []MyRune
    	_ = string(z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 18:40:16 UTC 2022
    - 428 bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Bytes.java

    /**
     * Static utility methods pertaining to {@code byte} primitives, that are not already found in
     * either {@link Byte} or {@link Arrays}, <i>and interpret bytes as neither signed nor unsigned</i>.
     * The methods which specifically treat bytes as signed or unsigned are found in {@link SignedBytes}
     * and {@link UnsignedBytes}.
     *
     * <p>See the Guava User Guide article on <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top