Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 597 for BYTE (0.16 sec)

  1. src/cmd/compile/internal/test/testdata/copy_test.go

    package main
    
    import "testing"
    
    type T1 struct {
    	pre  [8]byte
    	mid  [1]byte
    	post [8]byte
    }
    
    //go:noinline
    func t1copy_ssa(y, x *[1]byte) {
    	*y = *x
    }
    func testCopy1(t *testing.T) {
    	a := T1{[8]byte{201, 202, 203, 204, 205, 206, 207, 208}, [1]byte{0}, [8]byte{211, 212, 213, 214, 215, 216, 217, 218}}
    	x := [1]byte{100}
    	t1copy_ssa(&a.mid, &x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 150.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/shell_test.go

    	f.Add([]byte(`-lextra\ fun\ arg\\`))
    	f.Add([]byte("\textra     whitespace\r"))
    	f.Add([]byte("     \r      "))
    	f.Add([]byte(`"-r:foo" "-L/usr/white space/lib" "-lfoo bar" "-lbar baz"`))
    	f.Add([]byte(`"-lextra fun arg\\"`))
    	f.Add([]byte(`"     \r\n\      "`))
    	f.Add([]byte(`""`))
    	f.Add([]byte(``))
    	f.Add([]byte(`"\\"`))
    	f.Add([]byte(`"\x"`))
    	f.Add([]byte(`"\\x"`))
    	f.Add([]byte(`'\\'`))
    	f.Add([]byte(`'\x'`))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    // interface type assertions x.(T)
    func assertE2I(inter *byte, typ *byte) *byte
    func assertE2I2(inter *byte, typ *byte) *byte
    func panicdottypeE(have, want, iface *byte)
    func panicdottypeI(have, want, iface *byte)
    func panicnildottype(want *byte)
    func typeAssert(s *byte, typ *byte) *byte
    
    // interface switches
    func interfaceSwitch(s *byte, t *byte) (int, *byte)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    	{"TrimRight", []byte("☺"), "☺", []byte{}},
    	{"TrimPrefix", nil, "", nil},
    	{"TrimPrefix", []byte{}, "", []byte{}},
    	{"TrimPrefix", []byte{'a'}, "a", []byte{}},
    	{"TrimPrefix", []byte("☺"), "☺", []byte{}},
    	{"TrimSuffix", nil, "", nil},
    	{"TrimSuffix", []byte{}, "", []byte{}},
    	{"TrimSuffix", []byte{'a'}, "a", []byte{}},
    	{"TrimSuffix", []byte("☺"), "☺", []byte{}},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/plan9/dir_plan9.go

    func pbit32(b []byte, v uint32) []byte {
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    	b[2] = byte(v >> 16)
    	b[3] = byte(v >> 24)
    	return b[4:]
    }
    
    // pbit64 copies the 64-bit number v to b in little-endian order and returns the remaining slice of b.
    func pbit64(b []byte, v uint64) []byte {
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    	b[2] = byte(v >> 16)
    	b[3] = byte(v >> 24)
    	b[4] = byte(v >> 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/testdata/reproducible/issue20272.go

    package p
    
    var (
    	i0 uint8
    	b0 byte
    
    	i1 *uint8
    	b1 *byte
    
    	i2 **uint8
    	b2 **byte
    
    	i3 ***uint8
    	b3 ***byte
    
    	i4 ****uint8
    	b4 ****byte
    
    	i5 *****uint8
    	b5 *****byte
    
    	i6 ******uint8
    	b6 ******byte
    
    	i7 *******uint8
    	b7 *******byte
    
    	i8 ********uint8
    	b8 ********byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 430 bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    	*b = block{}
    }
    
    type headerV7 [blockSize]byte
    
    func (h *headerV7) name() []byte     { return h[000:][:100] }
    func (h *headerV7) mode() []byte     { return h[100:][:8] }
    func (h *headerV7) uid() []byte      { return h[108:][:8] }
    func (h *headerV7) gid() []byte      { return h[116:][:8] }
    func (h *headerV7) size() []byte     { return h[124:][:12] }
    func (h *headerV7) modTime() []byte  { return h[136:][:12] }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/builtins_test.go

    	{"append", `var s []int; _ = (append)(s, 0)`, `func([]int, ...int) []int`},
    	{"append", `var s []byte; _ = ((append))(s, 0)`, `func([]byte, ...byte) []byte`},
    	{"append", `var s []byte; _ = append(s, "foo"...)`, `func([]byte, string...) []byte`},
    	{"append", `type T []byte; var s T; var str string; _ = append(s, str...)`, `func(p.T, string...) p.T`},
    	{"append", `type T []byte; type U string; var s T; var str U; _ = append(s, str...)`, `func(p.T, p.U...) p.T`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    		// type for test
    		fmt.Fprintf(w, "type Z%d struct {\n", s)
    		fmt.Fprintf(w, "  pre [8]byte\n")
    		fmt.Fprintf(w, "  mid [%d]byte\n", s)
    		fmt.Fprintf(w, "  post [8]byte\n")
    		fmt.Fprintf(w, "}\n")
    
    		// function being tested
    		fmt.Fprintf(w, "//go:noinline\n")
    		fmt.Fprintf(w, "func zero%d_ssa(x *[%d]byte) {\n", s, s)
    		fmt.Fprintf(w, "  *x = [%d]byte{}\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// testing harness
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/align_test.go

    type T1 struct {
    	x          float32
    	a, b, c, d int16 // memequal64
    }
    type T2 struct {
    	x          float32
    	a, b, c, d int32 // memequal128
    }
    
    type A2 [2]byte // eq uses a 2-byte load
    type A4 [4]byte // eq uses a 4-byte load
    type A8 [8]byte // eq uses an 8-byte load
    
    //go:noinline
    func cmpT1(p, q *T1) {
    	if *p != *q {
    		panic("comparison test wrong")
    	}
    }
    
    //go:noinline
    func cmpT2(p, q *T2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 24 19:06:05 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top