Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SZ (0.04 sec)

  1. cmd/xl-storage.go

    	}
    	if stat.IsDir() {
    		return nil, dmTime, errFileNotFound
    	}
    
    	// Read into appropriate buffer.
    	sz := stat.Size()
    	if sz <= metaDataReadDefault {
    		buf = metaDataPoolGet()
    		buf = buf[:sz]
    	} else {
    		buf = make([]byte, sz)
    	}
    
    	// Read file...
    	_, err = io.ReadFull(f, buf)
    
    	return buf, stat.ModTime().UTC(), osErrToFileErr(err)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    				set:  true,
    				Days: 1,
    			},
    		},
    		{
    			ID:     "rule-with-sz-lt",
    			Status: "Enabled",
    			Filter: Filter{
    				set:                true,
    				ObjectSizeLessThan: 100 * humanize.MiByte,
    			},
    			Expiration: Expiration{
    				set:  true,
    				Days: 1,
    			},
    		},
    		{
    			ID:     "rule-with-sz-gt",
    			Status: "Enabled",
    			Filter: Filter{
    				set:                   true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2.go

    func (x *xlMetaV2) AppendTo(dst []byte) ([]byte, error) {
    	// Header...
    	sz := len(xlHeader) + len(xlVersionCurrent) + msgp.ArrayHeaderSize + len(dst) + 3*msgp.Uint32Size
    	// Existing + Inline data
    	sz += len(dst) + len(x.data)
    	// Versions...
    	for _, ver := range x.versions {
    		sz += 32 + len(ver.meta)
    	}
    	if cap(dst) < sz {
    		buf := make([]byte, len(dst), sz)
    		copy(buf, dst)
    		dst = buf
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  4. cmd/data-usage-cache_gen.go

    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "ch":
    			err = z.Children.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Children")
    				return
    			}
    		case "sz":
    			z.Size, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "os":
    			z.Objects, err = dc.ReadUint64()
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

      const int64_t partial_shape[] = {17, -1};
      const size_t sz = TF_ARRAYSIZE(partial_shape);
      desc = init("shape");
      TF_SetAttrShape(desc, "v", partial_shape, sz);
      oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", -1, TF_ATTR_SHAPE, sz);
      int64_t values[sz];
      TF_OperationGetAttrShape(oper, "v", values, sz, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    			o += copy(buf[o:], uchars)
    		}
    
    		// Make space for the needle rune at the end of buf.
    		m := utf8.RuneLen(needle)
    		for o := m; o > 0; {
    			_, sz := utf8.DecodeLastRune(buf)
    			copy(buf[len(buf)-sz:], "\x00\x00\x00\x00")
    			buf = buf[:len(buf)-sz]
    			o -= sz
    		}
    		buf = utf8.AppendRune(buf[:n-m], needle)
    
    		n -= m // adjust for rune len
    		for i := 0; i < b.N; i++ {
    			j := IndexRune(buf, needle)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users.go

    	// of bucket metadata
    	zipWriter := zip.NewWriter(w)
    	defer zipWriter.Close()
    	rawDataFn := func(r io.Reader, filename string, sz int) error {
    		header, zerr := zip.FileInfoHeader(dummyFileInfo{
    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    			modTime: time.Now(),
    			isDir:   false,
    			sys:     nil,
    		})
    		if zerr != nil {
    			adminLogIf(ctx, zerr)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  8. cmd/sts-handlers_test.go

    	}
    
    	var importContent []byte
    	{
    		var b bytes.Buffer
    		zipWriter := zip.NewWriter(&b)
    		rawDataFn := func(r io.Reader, filename string, sz int) error {
    			header, zerr := zip.FileInfoHeader(dummyFileInfo{
    				name:    filename,
    				size:    int64(sz),
    				mode:    0o600,
    				modTime: time.Now(),
    				isDir:   false,
    				sys:     nil,
    			})
    			if zerr != nil {
    				adminLogIf(ctx, zerr)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    	tags["set"] = strconv.Itoa(er.setIndex)
    	tags["pool"] = strconv.Itoa(er.poolIndex)
    	tags["merrs"] = joinErrs(errs)
    	tags["derrs"] = fmt.Sprintf("%v", dataErrsByPart)
    	if m.IsValid() {
    		tags["sz"] = strconv.FormatInt(m.Size, 10)
    		tags["mt"] = m.ModTime.Format(iso8601Format)
    		tags["d:p"] = fmt.Sprintf("%d:%d", m.Erasure.DataBlocks, m.Erasure.ParityBlocks)
    	} else {
    		tags["invalid"] = "1"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  10. go.sum

    github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
    github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
    github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
    github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
    github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 06:23:25 UTC 2024
    - 62.2K bytes
    - Viewed (0)
Back to top