Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FR (0.19 sec)

  1. src/archive/zip/register.go

    }
    
    var flateReaderPool sync.Pool
    
    func newFlateReader(r io.Reader) io.ReadCloser {
    	fr, ok := flateReaderPool.Get().(io.ReadCloser)
    	if ok {
    		fr.(flate.Resetter).Reset(r, nil)
    	} else {
    		fr = flate.NewReader(r)
    	}
    	return &pooledFlateReader{fr: fr}
    }
    
    type pooledFlateReader struct {
    	mu sync.Mutex // guards Close and Read
    	fr io.ReadCloser
    }
    
    func (r *pooledFlateReader) Read(p []byte) (n int, err error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	nb int64     // Number of remaining bytes to read
    }
    
    func (fr *regFileReader) Read(b []byte) (n int, err error) {
    	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
    	}
    }
    
    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)
  3. cmd/storage-datatypes.go

    	Data []byte `msg:"d,allownil"` // optionally carries object data
    
    	NumVersions      int       `msg:"nv"`
    	SuccessorModTime time.Time `msg:"smt"`
    
    	Fresh bool `msg:"fr"` // indicates this is a first time call to write FileInfo.
    
    	// Position of this version or object in a multi-object delete call,
    	// no other caller must set this value other than multi-object delete call.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. tests/associations_has_many_test.go

    	if err := tx.Model(&item).Association("Contents").Unscoped().Replace([]ItemContent{
    		{Name: "updated name", LanguageCode: "en"},
    		{Name: "ar updated name", LanguageCode: "ar"},
    		{Name: "le nom", LanguageCode: "fr"},
    	}); err != nil {
    		t.Errorf("failed to replace item content, got error: %v", err)
    	}
    
    	if count := tx.Model(&item).Association("Contents").Count(); count != 3 {
    		t.Errorf("expected %d contents, got %d", 3, count)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
Back to top