- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for approach (0.04 sec)
-
guava/src/com/google/common/hash/LittleEndianByteArray.java
/** * Common interface for retrieving a 64-bit long from a little-endian byte array. * * <p>This abstraction allows us to use single-instruction load and put when available, or fall * back on the slower approach of using Longs.fromBytes(byte...). */ private interface LittleEndianBytes { long getLongLittleEndian(byte[] array, int offset); void putLongLittleEndian(byte[] array, int offset, long value);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 12.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
import okio.ByteString.Companion.toByteString /** * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2 * filter. The approach is to hook into JSSE log events for the messages between client and server * during handshake, and then take the agreed masterSecret from private fields of the session. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/MoreObjects.java
* Predicates.notNull())}, static importing as necessary. * * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier) * first.or(supplier)}. * * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
* parameters, and as it turns out Firefox and Chrome actually do rather different things, and * both say in their comments that they're not really sure what the right approach is. We go * with Chrome's behavior (which also experimentally seems to match what IE does), but if you * actually want to have a good chance of things working, please avoid double-quotes, newlines,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMap.java
* #remove} to forward to this implementation. * * <p>Alternately, you may wish to override {@link #remove} with {@code keySet().remove}, assuming * that approach would not lead to an infinite loop. * * @since 7.0 */ protected @Nullable V standardRemove(@Nullable Object key) { Iterator<Entry<K, V>> entryIterator = entrySet().iterator();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 17:32:30 UTC 2025 - 9.8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
quotient = divide(x, radix); } long rem = x - quotient * radix; buf[--i] = Character.forDigit((int) rem, radix); x = quotient; // Simple modulo/division approach while (x > 0) { buf[--i] = Character.forDigit((int) (x % radix), radix); x /= radix; } } // Generate string return new String(buf, i, buf.length - i);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 17.8K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
return when { adapter != null -> adapter.fromDer(reader) else -> reader.readUnknown() } } } } /** * Object class to adapter type. This approach limits us to one adapter per Kotlin class, which * might be too few for values like UTF_STRING and OBJECT_IDENTIFIER that share a Kotlin class but * have very different ASN.1 interpretations. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Crc32cHashFunction.java
} static final class Crc32cHasher extends AbstractStreamingHasher { /* * The striding algorithm works roughly as follows: it is universally the case that * CRC(x ^ y) == CRC(x) ^ CRC(y). The approach we take is to break the message as follows, * with each letter representing a 4-byte word: ABCDABCDABCDABCD... and to calculate * CRC(A000A000A000...), CRC(0B000B000B...), CRC(00C000C000C...), CRC(000D000D000D...)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 21.2K bytes - Viewed (0) -
guava/src/com/google/common/base/MoreObjects.java
* Predicates.notNull())}, static importing as necessary. * * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier) * first.or(supplier)}. * * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
* certificate pinning. * * * **Exactly one subdomain**: Use a single asterisk like `*.publicobject.com` to match exactly * one prefix (`www.publicobject.com`, `api.publicobject.com`). Be careful with this approach as * no pinning will be enforced if additional prefixes are present, or if no prefixes are present. * * Note that any other form is unsupported. You may not use asterisks in any position other than
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (0)