- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 746 for reset (0.02 sec)
-
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
} } out.close(); // Check that source returns the right data assertTrue(Arrays.equals(data, source.read())); // Make sure that reset deleted the file out.reset(); if (file != null) { assertFalse(file.exists()); } } public void testThreshold_resetOnFinalize() throws Exception { testThreshold(0, 100, true, true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.5K bytes - Viewed (0) -
src/bytes/reader.go
panic("bytes.Reader.WriteTo: invalid Write count") } r.i += int64(m) n = int64(m) if m != len(b) && err == nil { err = io.ErrShortWrite } return } // Reset resets the [Reader] to be reading from b. func (r *Reader) Reset(b []byte) { *r = Reader{b, 0, -1} } // NewReader returns a new [Reader] reading from b.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jul 16 18:17:37 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/metacache-stream.go
if w == nil || w.closer == nil { return nil } w.streamWg.Wait() err := w.closer() w.closer = nil return err } // Reset and start writing to new writer. // Close must have been called before this. func (w *metacacheWriter) Reset(out io.Writer) { w.streamErr = nil w.creator = func() error { s2w := s2.NewWriter(out, s2.WriterBlockSize(w.blockSize), s2.WriterConcurrency(2))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 19.5K bytes - Viewed (0) -
internal/s3select/simdj/record.go
b, err := iter.MarshalJSON() return sql.FromBytes(b), err } return nil, fmt.Errorf("iterToValue: unknown JSON type: %s", iter.Type().String()) } // Reset the record. func (r *Record) Reset() { r.object = simdjson.Object{} } // Clone the record and if possible use the destination provided. func (r *Record) Clone(dst sql.Record) sql.Record { other, ok := dst.(*Record) if !ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.4K bytes - Viewed (0) -
tests/test_dependency_contextvars.py
async def set_up_request_state_dependency(): request_state = {"user": "deadpond"} contextvar_token = legacy_request_state_context_var.set(request_state) yield request_state legacy_request_state_context_var.reset(contextvar_token) @app.middleware("http") async def custom_middleware( request: Request, call_next: Callable[[Request], Awaitable[Response]] ): response = await call_next(request)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Feb 17 12:40:12 UTC 2022 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/InputStreamUtil.java
/** * {@link InputStream}をリセットします。 * * @param is * 入力ストリーム。{@literal null}であってはいけません * @see InputStream#reset() */ public static void reset(final InputStream is) { assertArgumentNotNull("is", is); try { is.reset(); } catch (final IOException e) { throw new IORuntimeException(e); } }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/io/Java8Compatibility.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
finished_execute_.wait(l); } if (TF_GetCode(status_.get()) != TF_OK) { TF_SetStatus(status, TF_GetCode(status_.get()), TF_Message(status_.get())); // Reset the member `status_` so future op executions (after recovery from // the bad `status`) start with an OK status. TF_SetStatus(status_.get(), TF_OK, ""); } cancellation_manager_ = nullptr;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 25.9K bytes - Viewed (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java
} private static BufferedInputStream reset(StreamSupplier inputSupplier, BufferedInputStream bis) throws IOException { try { bis.reset(); return bis; } catch (IOException e) { return new BufferedInputStream(inputSupplier.open(), BUFFER_SIZE); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 17.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/LongAdder.java
* example during quiescent points between multithreaded computations. If there are updates * concurrent with this method, the returned value is not guaranteed to be the final * value occurring before the reset. * * @return the sum */ public long sumThenReset() { long sum = base; Cell[] as = cells; base = 0L;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 5.4K bytes - Viewed (0)