- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 121 for toByteArray (0.05 sec)
-
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
} catch (IOException e) { // Should not happen with ByteArrayOutputStream log.error("Error creating binding info", e); } return baos.toByteArray(); } private byte[] calculateBindingHash(byte[] bindingInfo) throws IOException { try { MessageDigest digest = MessageDigest.getInstance("SHA-256");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
ObjectOutputStream oos = new ObjectOutputStream(cos)) { oos.writeObject(handle); } Files.write(file, baos.toByteArray()); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt
} private fun certificate(certificate: String): X509Certificate = CertificateFactory .getInstance("X.509") .generateCertificate(ByteArrayInputStream(certificate.toByteArray())) as X509Certificate private fun session(certificate: String): SSLSession = FakeSSLSession(certificate(certificate))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 40.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* use a shared {@link java.nio.ByteBuffer} instance, or use {@link * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer. */ public static byte[] toByteArray(int value) { return new byte[] { (byte) (value >> 24), (byte) (value >> 16), (byte) (value >> 8), (byte) value }; } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 31.4K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
} catch (IOException e) { // Should not happen with ByteArrayOutputStream } return baos.toByteArray(); } private byte[] calculateBindingHash(byte[] bindingInfo) throws IOException { try { MessageDigest digest = MessageDigest.getInstance("SHA-256");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
/** * Converts an RPC sid_t structure to a byte array. * * @param sid the RPC sid_t structure to convert * @return byte array representation of the SID */ public static byte[] toByteArray(final rpc.sid_t sid) { final byte[] dst = new byte[1 + 1 + 6 + sid.sub_authority_count * 4]; int di = 0; dst[di] = sid.revision; di++; dst[di++] = sid.sub_authority_count;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* use a shared {@link java.nio.ByteBuffer} instance, or use {@link * com.google.common.io.ByteStreams#newDataOutput()} to get a growable buffer. */ public static byte[] toByteArray(long value) { // Note that this code needs to stay compatible with GWT, which has known // bugs when narrowing byte casts of long values occur. byte[] result = new byte[8]; for (int i = 7; i >= 0; i--) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.1K bytes - Viewed (0)