Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for nobytes (0.43 sec)

  1. src/runtime/mheap.go

    			s.elemsize = nbytes
    			s.nelems = 1
    			s.divMul = 0
    		} else {
    			s.elemsize = uintptr(class_to_size[sizeclass])
    			if !s.spanclass.noscan() && heapBitsInSpan(s.elemsize) {
    				// Reserve space for the pointer/scan bitmap at the end.
    				s.nelems = uint16((nbytes - (nbytes / goarch.PtrSize / 8)) / s.elemsize)
    			} else {
    				s.nelems = uint16(nbytes / s.elemsize)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  2. src/runtime/mgcscavenge.go

    				// the runtime's accounting will be wrong.
    				nbytes := int64(npages * pageSize)
    				gcController.heapReleased.add(nbytes)
    				gcController.heapFree.add(-nbytes)
    
    				stats := memstats.heapStats.acquire()
    				atomic.Xaddint64(&stats.committed, -nbytes)
    				atomic.Xaddint64(&stats.released, nbytes)
    				memstats.heapStats.release()
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		t.Fatalf("got %d bytes left in bufio.Reader source; want 0 bytes", n)
    	}
    	// To prove the point, check that there are still 5 bytes available to read.
    	if n := r.Buffered(); n != 5 {
    		t.Fatalf("got %d bytes buffered in bufio.Reader; want 5 bytes", n)
    	}
    
    	// This is the second read of 0 bytes.
    	read, err = r.Read([]byte{})
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if read != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/time/format.go

    	return b == '.' || b == ','
    }
    
    func parseNanoseconds[bytes []byte | string](value bytes, nbytes int) (ns int, rangeErrString string, err error) {
    	if !commaOrPeriod(value[0]) {
    		err = errBad
    		return
    	}
    	if nbytes > 10 {
    		value = value[:10]
    		nbytes = 10
    	}
    	if ns, err = atoi(value[1:nbytes]); err != nil {
    		return
    	}
    	if ns < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/out.go

    		var buf bytes.Buffer
    		noSourceConf.Fprint(&buf, fset, def.Go)
    		if bytes.HasPrefix(buf.Bytes(), []byte("_Ctype_")) ||
    			strings.HasPrefix(name, "_Ctype_enum_") ||
    			strings.HasPrefix(name, "_Ctype_union_") {
    			// This typedef is of the form `typedef a b` and should be an alias.
    			fmt.Fprintf(fgo2, "= ")
    		}
    		fmt.Fprintf(fgo2, "%s", buf.Bytes())
    		fmt.Fprintf(fgo2, "\n\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. cmd/erasure-healing_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	oi1, err := obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(data), length, "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// 2nd version.
    	_, _ = rand.Read(data)
    	oi2, err := obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(data), length, "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

        tensorflow::AttrValue attr;
        for (const string& v : list) {
          attr.mutable_list()->add_s(v);
        }
        string bytes;
        attr.SerializeToString(&bytes);
        TF_SetAttrValueProto(desc, tensorflow::kColocationAttrName, bytes.data(),
                             bytes.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void VerifyCollocation(TF_Operation* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top