Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,947 for gbyte (0.1 sec)

  1. test/fixedbugs/bug242.go

    package main
    
    var i byte = 0
    var a [30]byte
    
    func f() *byte {
    	i++
    	return &a[i-1]
    }
    func gbyte() byte {
    	i++
    	return 'a' + i - 1
    }
    func gint() byte {
    	i++
    	return i - 1
    }
    func x() (byte, byte) {
    	i++
    	return 'a' + i - 1, 'a' + i - 1
    }
    func e1(c chan byte, expected byte) chan byte {
    	if i != expected {
    		println("e1: got", i, "expected", expected)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    var UnitTypes = []UnitType{{
    	Units: []Unit{
    		{"B", []string{"b", "byte"}, 1},
    		{"kB", []string{"kb", "kbyte", "kilobyte"}, float64(1 << 10)},
    		{"MB", []string{"mb", "mbyte", "megabyte"}, float64(1 << 20)},
    		{"GB", []string{"gb", "gbyte", "gigabyte"}, float64(1 << 30)},
    		{"TB", []string{"tb", "tbyte", "terabyte"}, float64(1 << 40)},
    		{"PB", []string{"pb", "pbyte", "petabyte"}, float64(1 << 50)},
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go

    // If the value passed in is not actually a map, this will panic.
    func ByteKeySet[T any](theMap map[byte]T) Byte {
    	return Byte(KeySet(theMap))
    }
    
    // Insert adds items to the set.
    func (s Byte) Insert(items ...byte) Byte {
    	return Byte(cast(s).Insert(items...))
    }
    
    // Delete removes all items from the set.
    func (s Byte) Delete(items ...byte) Byte {
    	return Byte(cast(s).Delete(items...))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  4. src/runtime/memmove_test.go

    		{"4byte", 4, func(buf []byte) uint64 { return uint64(binary.LittleEndian.Uint32(buf)) }},
    		{"8byte", 8, func(buf []byte) uint64 { return binary.LittleEndian.Uint64(buf) }},
    	}
    
    	var g [4096]byte
    	for _, bm := range benchmarks {
    		buf := make([]byte, bm.nbyte)
    		b.Run(bm.name, func(b *testing.B) {
    			for j := 0; j < b.N; j++ {
    				for i := 0; i < 4096; i += bm.nbyte {
    					copy(buf[:], g[i:])
    					sink += bm.f(buf[:])
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:12 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go

    	SYS_READ           = 3   // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
    	SYS_WRITE          = 4   // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); }
    	SYS_OPEN           = 5   // { int sys_open(const char *path, int flags, ... mode_t mode); }
    	SYS_CLOSE          = 6   // { int sys_close(int fd); }
    	SYS_GETENTROPY     = 7   // { int sys_getentropy(void *buf, size_t nbyte); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  6. src/crypto/subtle/xor_amd64.s

    	MOVOU (CX)(AX*1), X1
    	PXOR  X1, X0
    	MOVOU X0, (BX)(AX*1)
    	ADDQ  $16, AX
    	CMPQ  DX, AX
    	JNE   loop16b
    	RET
    
    	PCALIGN $16
    loop_1b:
    	SUBQ  $1, DX           // XOR 1byte backwards.
    	MOVB  (SI)(DX*1), DI
    	MOVB  (CX)(DX*1), AX
    	XORB  AX, DI
    	MOVB  DI, (BX)(DX*1)
    	TESTQ $7, DX           // AND 7 & len, if not zero jump to loop_1b.
    	JNZ   loop_1b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 18:14:32 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/filter_test.go

    	f1 := Filter{
    		set: true,
    		Prefix: Prefix{
    			string: "doc/",
    			set:    true,
    			Unused: struct{}{},
    		},
    		ObjectSizeGreaterThan: 100 * humanize.MiByte,
    		ObjectSizeLessThan:    100 * humanize.GiByte,
    	}
    	b, err := xml.Marshal(f1)
    	if err != nil {
    		t.Fatalf("Failed to marshal %v", f1)
    	}
    	var f2 Filter
    	err = xml.Unmarshal(b, &f2)
    	if err != nil {
    		t.Fatalf("Failed to unmarshal %s", string(b))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. test/convert1.go

    	_ = Tbyte(tsb)
    	_ = Trune(tsb)  // ERROR "cannot convert.*Trune|invalid type conversion"
    	_ = Tint64(tsb) // ERROR "cannot convert.*Tint64|invalid type conversion"
    
    	_ = string(tsr)
    	_ = []byte(tsr) // ERROR "cannot convert.*\[\]byte|invalid type conversion"
    	_ = []rune(tsr)
    	_ = []int64(tsr) // ERROR "cannot convert.*\[\]int64|invalid type conversion"
    	_ = Tstring(tsr)
    	_ = Tbyte(tsr) // ERROR "cannot convert.*Tbyte|invalid type conversion"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.4K bytes
    - Viewed (0)
  9. src/runtime/slice_test.go

    				}
    			}
    		})
    
    	})
    
    	b.Run("Grow", func(b *testing.B) {
    		const C = 5
    
    		b.Run("Byte", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				sByte = make([]byte, 0)
    				for j := 0; j < C; j++ {
    					sByte = append(sByte, 0x77)
    					sByte = sByte[:cap(sByte)]
    				}
    			}
    		})
    
    		b.Run("1Ptr", func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  10. src/syscall/zsysnum_netbsd_amd64.go

    	SYS_FORK                 = 2   // { int|sys||fork(void); }
    	SYS_READ                 = 3   // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
    	SYS_WRITE                = 4   // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); }
    	SYS_OPEN                 = 5   // { int|sys||open(const char *path, int flags, ... mode_t mode); }
    	SYS_CLOSE                = 6   // { int|sys||close(int fd); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 25.7K bytes
    - Viewed (0)
Back to top