- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 111 for toByteArray (0.06 sec)
-
guava-tests/test/com/google/common/io/SourceSinkFactories.java
byte[] buffer = new byte[100]; int read; while ((read = in.read(buffer)) != -1) { out.write(buffer, 0, read); } return out.toByteArray(); } } private static class FileCharSourceFactory extends FileFactory implements CharSourceFactory { @Override public CharSource createSource(String string) throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashFunction.java
* equivalent to hashing the {@code int} value {@code 0x04030201}. If this isn't what you need, * methods such as {@link Integer#reverseBytes} and {@link Ints#toByteArray} will help. * * <h3>Relationship to {@link Object#hashCode}</h3> * * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashFunction.java
* equivalent to hashing the {@code int} value {@code 0x04030201}. If this isn't what you need, * methods such as {@link Integer#reverseBytes} and {@link Ints#toByteArray} will help. * * <h3>Relationship to {@link Object#hashCode}</h3> * * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
// illegal value is 255.255.255.255. if (coercedHash == 0xffffffff) { coercedHash = 0xfffffffe; } return getInet4Address(Ints.toByteArray(coercedHash)); } /** * Returns an integer representing an IPv4 address regardless of whether the supplied argument is * an IPv4 address or not. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
// expected } finally { // restore sysout System.setOut(oldOut); } String versionOut = new String(systemOut.toByteArray(), StandardCharsets.UTF_8); // then assertEquals(stripAnsiCodes(versionOut), versionOut); } @Test void populatePropertiesCanContainEqualsSign() throws Exception {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
fun noDefaultContentLengthOnStreamingPost( protocol: Protocol, mockWebServer: MockWebServer, ) { setUp(protocol, mockWebServer) val postBytes = "FGHIJ".toByteArray() server.enqueue(MockResponse(body = "ABCDE")) val call = client.newCall( Request( url = server.url("/foo"), body = object : RequestBody() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Chars.java
* use a shared {@link java.nio.ByteBuffer} instance, or use {@link * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer. */ @GwtIncompatible // doesn't work public static byte[] toByteArray(char value) { return new byte[] {(byte) (value >> 8), (byte) value}; } /** * Returns the {@code char} value whose big-endian representation is stored in the first 2 bytes
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 23.9K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* use a shared {@link java.nio.ByteBuffer} instance, or use {@link * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer. */ @GwtIncompatible // doesn't work public static byte[] toByteArray(short value) { return new byte[] {(byte) (value >> 8), (byte) value}; } /** * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 25.5K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Shorts.java
* use a shared {@link java.nio.ByteBuffer} instance, or use {@link * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer. */ @GwtIncompatible // doesn't work public static byte[] toByteArray(short value) { return new byte[] {(byte) (value >> 8), (byte) value}; } /** * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 25.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
* Sets the session key. * * @param sessionKey The session key. */ public void setSessionKey(byte[] sessionKey) { this.sessionKey = sessionKey; } public byte[] toByteArray() { try { int flags = getFlags(); boolean unicode = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0; String oem = unicode ? null : getOEMEncoding();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 22.9K bytes - Viewed (0)