- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 183 for Unwrap (0.05 seconds)
-
tensorflow/c/conversion_macros.h
inline cpp_impl *unwrap(wrapper *w) { \ return reinterpret_cast<cpp_impl *>(w); \ } \ \ inline const cpp_impl *unwrap(const wrapper *w) { \Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon May 04 16:24:03 GMT 2020 - 1.7K bytes - Click Count (0) -
internal/logger/logonce.go
} } const unwrapErrsDepth = 3 // unwrapErrs upto the point where errors.Unwrap(err) returns nil func unwrapErrs(err error) (leafErr error) { uerr := errors.Unwrap(err) depth := 1 for uerr != nil { // Save the current `uerr` leafErr = uerr // continue to look for leaf errors underneath uerr = errors.Unwrap(leafErr) depth++ if depth == unwrapErrsDepth { // If we have reached enough depth we
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.8K bytes - Click Count (0) -
internal/bucket/lifecycle/error.go
// the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...any) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error. func (e Error) Unwrap() error { return e.err } // Error 'error' compatible method. func (e Error) Error() string { if e.err == nil { return "lifecycle: cause <nil>" } return e.err.Error()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.3K bytes - Click Count (0) -
internal/bucket/versioning/error.go
// the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...any) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error. func (e Error) Unwrap() error { return e.err } // Error 'error' compatible method. func (e Error) Error() string { if e.err == nil { return "versioning: cause <nil>" } return e.err.Error()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java
} public void testWrap() { assertThat(Primitives.wrap(int.class)).isEqualTo(Integer.class); assertThat(Primitives.wrap(Integer.class)).isEqualTo(Integer.class); assertThat(Primitives.wrap(String.class)).isEqualTo(String.class); } public void testUnwrap() { assertThat(Primitives.unwrap(Integer.class)).isEqualTo(int.class); assertThat(Primitives.unwrap(int.class)).isEqualTo(int.class);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Primitives.java
* returns {@code type} itself. Idempotent. * * <pre> * unwrap(Integer.class) == int.class * unwrap(int.class) == int.class * unwrap(String.class) == String.class * </pre> */ public static <T> Class<T> unwrap(Class<T> type) { checkNotNull(type); // cast is safe: long.class and Long.class are both of type Class<Long>Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.8K bytes - Click Count (0) -
cmd/api-response_test.go
t.Fatalf("reading response body failed: %v", err) } if string(body) != "hello" { t.Fatalf("response body incorrect: %v", string(body)) } // Check that Unwrap works if trw.Unwrap() != rw { t.Fatalf("Unwrap returned wrong result: %v", trw.Unwrap()) } } func TestHeadersAlreadyWritten(t *testing.T) { rw := httptest.NewRecorder() trw := &trackingResponseWriter{ResponseWriter: rw}
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 5.8K bytes - Click Count (0) -
internal/crypto/error.go
func Errorf(format string, a ...any) error { e := fmt.Errorf(format, a...) ee := Error{} ee.msg = e.Error() ee.cause = errors.Unwrap(e) return ee } // Unwrap the internal error. func (e Error) Unwrap() error { return e.cause } // Error 'error' compatible method. func (e Error) Error() string { if e.msg == "" { return "crypto: cause <nil>" } return e.msg }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.4K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
import okio.Buffer import okio.ByteString internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher { if (this is QueueDispatcher) return this.delegate val delegate = this return object : mockwebserver3.Dispatcher() { override fun dispatch(request: mockwebserver3.RecordedRequest): mockwebserver3.MockResponse = delegate.dispatch(request.unwrap()).wrap() override fun peek(): mockwebserver3.MockResponse = delegate.peek().wrap()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 4.1K bytes - Click Count (1) -
internal/deadlineconn/deadlineconn.go
infReads, infWrites atomic.Bool mu sync.Mutex } // Unwrap will unwrap the connection and remove the deadline if applied. // If not a *DeadlineConn, the unmodified net.Conn is returned. func Unwrap(c net.Conn) net.Conn { if dc, ok := c.(*DeadlineConn); ok { return dc.Conn } return c } // Sets read deadlineCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Dec 02 13:21:17 GMT 2024 - 5.1K bytes - Click Count (0)