Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resetFor (0.08 sec)

  1. src/archive/zip/register.go

    		w.fw = nil
    	}
    	return err
    }
    
    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
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. lib/fips140/v1.0.0.zip

    operations modulo m. // // The announced size of x must be smaller than or equal to that of m. func (x *Nat) ExpandFor(m *Modulus) *Nat { return x.expand(len(m.nat.limbs)) } // resetFor ensures out has the right size to work with operations modulo m. // // out is zeroed and may start at any size. func (out *Nat) resetFor(m *Modulus) *Nat { return out.reset(len(m.nat.limbs)) } // maybeSubtractModulus computes x -= m if and only if x >= m or if "always" is yes. // // It can be used to reduce modulo...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top