Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for Int64 (0.19 sec)

  1. src/archive/zip/zip_test.go

    type suffixSaver struct {
    	keep  int
    	buf   []byte
    	start int
    	size  int64
    }
    
    func (ss *suffixSaver) Size() int64 { return ss.size }
    
    var errDiscardedBytes = errors.New("ReadAt of discarded bytes")
    
    func (ss *suffixSaver) ReadAt(p []byte, off int64) (n int, err error) {
    	back := ss.size - off
    	if back > int64(ss.keep) {
    		return 0, errDiscardedBytes
    	}
    	suf := ss.Suffix()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/archive/tar/stat_unix.go

    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "linux":
    			// Copied from golang.org/x/sys/unix/dev_linux.go.
    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/tape.h

      // Map from tensor ID to how many references still exist for this tensor in
      // the tape.
      std::unordered_map<int64_t, int64_t> tensor_usage_counts;
    
      // Maps from op ID to how many output tensors of this op still need to have
      // their gradients computed.
      std::unordered_map<int64_t, int64_t> op_missing_tensor;
    };
    
    // If `persistent_tape` is true, op_tape is not changed and none of the
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  4. internal/event/targetlist.go

    type Stats struct {
    	TotalEvents        int64 // Deprecated
    	EventsSkipped      int64
    	CurrentQueuedCalls int64 // Deprecated
    	EventsErrorsTotal  int64 // Deprecated
    	CurrentSendCalls   int64 // Deprecated
    
    	TargetStats map[TargetID]TargetStat
    }
    
    // TargetStat is the stats of a single target.
    type TargetStat struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. schema/field.go

    			case int32:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint8:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint16:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint32:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint64:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  6. cmd/tier-last-day-stats_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalDailyAllTierStats(b *testing.B) {
    	v := DailyAllTierStats{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader.go

    	if int64(len(b)) > fr.nb {
    		b = b[:fr.nb]
    	}
    	if len(b) > 0 {
    		n, err = fr.r.Read(b)
    		fr.nb -= int64(n)
    	}
    	switch {
    	case err == io.EOF && fr.nb > 0:
    		return n, io.ErrUnexpectedEOF
    	case err == nil && fr.nb == 0:
    		return n, io.EOF
    	default:
    		return n, err
    	}
    }
    
    func (fr *regFileReader) WriteTo(w io.Writer) (int64, error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. cmd/storage-datatypes_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalBaseOptions(b *testing.B) {
    	v := BaseOptions{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 60.4K bytes
    - Viewed (0)
  9. internal/ioutil/ioutil.go

    type LimitWriter struct {
    	io.Writer
    	skipBytes int64
    	wLimit    int64
    }
    
    // Write implements the io.Writer interface limiting upto
    // configured length, also skips the first N bytes.
    func (w *LimitWriter) Write(p []byte) (n int, err error) {
    	n = len(p)
    	var n1 int
    	if w.skipBytes > 0 {
    		if w.skipBytes >= int64(len(p)) {
    			w.skipBytes -= int64(len(p))
    			return n, nil
    		}
    		p = p[w.skipBytes:]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. cmd/local-locker_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshallocalLockMap(b *testing.B) {
    	v := localLockMap{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 6.7K bytes
    - Viewed (0)
Back to top