Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Siz (0.14 sec)

  1. src/internal/coverage/calloc/batchcounteralloc.go

    type BatchCounterAlloc struct {
    	pool []uint32
    }
    
    func (ca *BatchCounterAlloc) AllocateCounters(n int) []uint32 {
    	const chunk = 8192
    	if n > cap(ca.pool) {
    		siz := chunk
    		if n > chunk {
    			siz = n
    		}
    		ca.pool = make([]uint32, siz)
    	}
    	rv := ca.pool[:n]
    	ca.pool = ca.pool[n:]
    	return rv
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 754 bytes
    - Viewed (0)
  2. src/runtime/cgo/handle_test.go

    			t.Fatalf("Value of a Handle got wrong, got %+v %+v, want %+v", h1v, h2v, tt.v1)
    		}
    
    		h1.Delete()
    		h2.Delete()
    	}
    
    	siz := 0
    	handles.Range(func(k, v any) bool {
    		siz++
    		return true
    	})
    	if siz != 0 {
    		t.Fatalf("handles are not cleared, got %d, want %d", siz, 0)
    	}
    }
    
    func TestInvalidHandle(t *testing.T) {
    	t.Run("zero", func(t *testing.T) {
    		h := Handle(0)
    
    		defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/objfile_test.go

    	var s2 Sym
    	s2.fromBytes(b)
    	if s2.ABI() != 1 || s2.Type() != uint8(objabi.STEXT) || s2.Flag() != 0x12 || s2.Siz() != 12345 || s2.Align() != 8 {
    		t.Errorf("read Sym2 mismatch: got %v %v %v %v %v", s2.ABI(), s2.Type(), s2.Flag(), s2.Siz(), s2.Align())
    	}
    
    	b = b[SymSize:]
    	var r2 Reloc
    	r2.fromBytes(b)
    	if r2.Off() != 12 || r2.Siz() != 4 || r2.Type() != uint16(objabi.R_ADDR) || r2.Add() != 54321 || r2.Sym() != (SymRef{11, 22}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. src/crypto/aes/gcm_ppc64x.go

    // 16-bytes. It then calculates a new value for hash using the ghash
    // algorithm.
    func (g *gcmAsm) paddedGHASH(hash *[16]byte, data []byte) {
    	if siz := len(data) - (len(data) % gcmBlockSize); siz > 0 {
    		gcmHash(hash[:], &g.productTable, data[:], siz)
    		data = data[siz:]
    	}
    	if len(data) > 0 {
    		var s [16]byte
    		copy(s[:], data)
    		gcmHash(hash[:], &g.productTable, s[:], len(s))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. docs/az/docs/learn/index.md

    # Öyrən
    
    Burada **FastAPI** öyrənmək üçün giriş bölmələri və dərsliklər yer alır.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 09 00:39:20 UTC 2024
    - 212 bytes
    - Viewed (0)
  6. src/cmd/internal/objfile/goobj.go

    			Addr: uint64(r.DataOff(i)),
    			Size: int64(osym.Siz()),
    			Code: code,
    		}
    
    		relocs := r.Relocs(i)
    		sym.Relocs = make([]Reloc, len(relocs))
    		for j := range relocs {
    			rel := &relocs[j]
    			sym.Relocs[j] = Reloc{
    				Addr: uint64(r.DataOff(i)) + uint64(rel.Off()),
    				Size: uint64(rel.Siz()),
    				Stringer: goobjReloc{
    					Off:  rel.Off(),
    					Size: rel.Siz(),
    					Type: objabi.RelocType(rel.Type()),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. src/syscall/syscall_freebsd.go

    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [46]int8
    	raw    RawSockaddrDatalink
    }
    
    // Translate "kern.hostname" to []_C_int{0,1,2,3}.
    func nametomib(name string) (mib []_C_int, err error) {
    	const siz = unsafe.Sizeof(mib[0])
    
    	// NOTE(rsc): It seems strange to set the buffer to have
    	// size CTL_MAXNAME+2 but use only CTL_MAXNAME
    	// as the size. I don't know why the +2 is here, but the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_dragonfly.go

    	Slen   uint8
    	Data   [12]int8
    	Rcf    uint16
    	Route  [16]uint16
    	raw    RawSockaddrDatalink
    }
    
    // Translate "kern.hostname" to []_C_int{0,1,2,3}.
    func nametomib(name string) (mib []_C_int, err error) {
    	const siz = unsafe.Sizeof(mib[0])
    
    	// NOTE(rsc): It seems strange to set the buffer to have
    	// size CTL_MAXNAME+2 but use only CTL_MAXNAME
    	// as the size. I don't know why the +2 is here, but the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/seh.go

    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    				rel, _ := xdata.AddRel(r.Type())
    				rel.SetOff(int32(off) + r.Off())
    				rel.SetSiz(r.Siz())
    				rel.SetSym(r.Sym())
    				rel.SetAdd(r.Add())
    			}
    		}
    
    		// Reference:
    		// https://learn.microsoft.com/en-us/cpp/build/exception-handling-x64#struct-runtime_function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/x86/seh.go

    		s.Set(obj.AttrDuplicateOK, true)
    		s.Set(obj.AttrLocal, true)
    		s.Set(obj.AttrContentAddressable, true)
    		if exceptionHandler != nil {
    			r := obj.Addrel(s)
    			r.Off = int32(len(buf.data) - 4)
    			r.Siz = 4
    			r.Sym = exceptionHandler
    			r.Type = objabi.R_PEIMAGEOFF
    		}
    		ctxt.SEHSyms = append(ctxt.SEHSyms, s)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top