- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,884 for resets (0.2 sec)
-
src/time/tick.go
stopTimer((*Timer)(unsafe.Pointer(t))) } // Reset stops a ticker and resets its period to the specified duration. // The next tick will arrive after the new period elapses. The duration d // must be greater than zero; if not, Reset will panic. func (t *Ticker) Reset(d Duration) { if d <= 0 { panic("non-positive interval for Ticker.Reset") } if !t.initTicker { panic("time: Reset called on uninitialized Ticker") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 3.6K bytes - Viewed (0) -
src/math/rand/v2/chacha8.go
readLen int // 0 <= readLen <= 8 } // NewChaCha8 returns a new ChaCha8 seeded with the given seed. func NewChaCha8(seed [32]byte) *ChaCha8 { c := new(ChaCha8) c.state.Init(seed) return c } // Seed resets the ChaCha8 to behave the same way as NewChaCha8(seed). func (c *ChaCha8) Seed(seed [32]byte) { c.state.Init(seed) c.readLen = 0 c.readBuf = [8]byte{} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 2.8K bytes - Viewed (0) -
src/runtime/traceregion.go
x := (*notInHeap)(unsafe.Pointer(&block.data[0])) // Publish the new block. a.current.Store(unsafe.Pointer(block)) unlock(&a.lock) return x } // drop frees all previously allocated memory and resets the allocator. // // drop is not safe to call concurrently with other calls to drop or with calls to alloc. The caller // must ensure that it is not possible for anything else to be using the same structure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
internal/store/batch.go
if b.isFull() { return ErrBatchFull } if _, ok := b.items[key]; !ok { b.keys = append(b.keys, key) } b.items[key] = item return nil } // GetAll fetches the items and resets the batch // Returned items are not referenced by the batch func (b *Batch[K, T]) GetAll() (orderedKeys []K, orderedItems []T, err error) { b.Lock() defer b.Unlock() orderedKeys = append([]K(nil), b.keys...)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Oct 07 15:07:38 UTC 2023 - 2.5K bytes - Viewed (0) -
src/strings/builder.go
// total space allocated for the string being built and includes any bytes // already written. func (b *Builder) Cap() int { return cap(b.buf) } // Reset resets the [Builder] to be empty. func (b *Builder) Reset() { b.addr = nil b.buf = nil } // grow copies the buffer to a new, larger buffer so that there are at least n // bytes of capacity beyond len(b.buf). func (b *Builder) grow(n int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/SystemPropertyPropagationCrossVersionTest.groovy
when: runTask { withSystemProperties('unrelated' : 'value') } then: hasNoSystemProperty('mySystemProperty') } def "Calling withSystemProperties(null) resets to default behavior"() { when: runTask { withSystemProperties('unrelated' : 'value') withSystemProperties(null) } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 5K bytes - Viewed (0) -
src/math/rand/v2/pcg.go
type PCG struct { hi uint64 lo uint64 } // NewPCG returns a new PCG seeded with the given values. func NewPCG(seed1, seed2 uint64) *PCG { return &PCG{seed1, seed2} } // Seed resets the PCG to behave the same way as NewPCG(seed1, seed2). func (p *PCG) Seed(seed1, seed2 uint64) { p.hi = seed1 p.lo = seed2 } // MarshalBinary implements the encoding.BinaryMarshaler interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:31:58 UTC 2024 - 2.9K bytes - Viewed (0) -
src/strings/reader.go
} r.i += int64(m) n = int64(m) if m != len(s) && err == nil { err = io.ErrShortWrite } return } // Reset resets the [Reader] to be reading from s. func (r *Reader) Reset(s string) { *r = Reader{s, 0, -1} } // NewReader returns a new [Reader] reading from s. // It is similar to [bytes.NewBufferString] but more efficient and non-writable.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:10:31 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/testing/testfieldmanager.go
} // APIVersion of the object that we're tracking. func (f *TestFieldManagerImpl) APIVersion() string { return f.apiVersion } // Reset resets the state of the liveObject by resetting it to an empty object. func (f *TestFieldManagerImpl) Reset() { f.liveObj = f.emptyObj.DeepCopyObject() } // Live returns a copy of the current liveObject. func (f *TestFieldManagerImpl) Live() runtime.Object {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 5.1K bytes - Viewed (0)