- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,693 for byte2 (0.02 sec)
-
guava-tests/test/com/google/common/hash/FunnelsTest.java
PrimitiveSink sink = mock(PrimitiveSink.class); OutputStream out = Funnels.asOutputStream(sink); byte[] bytes = {1, 2, 3, 4}; out.write(255); out.write(bytes); out.write(bytes, 1, 2); verify(sink).putByte((byte) 255); verify(sink).putBytes(bytes); verify(sink).putBytes(bytes, 1, 2); } public void testSerialization() { assertSame(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements */ @GwtIncompatible // doesn't work public static short fromByteArray(byte[] bytes) { checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES); return fromBytes(bytes[0], bytes[1]); } /** * Returns the {@code short} value whose byte representation is the given 2 bytes, in big-endian
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
* @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements */ @GwtIncompatible // doesn't work public static short fromByteArray(byte[] bytes) { checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES); return fromBytes(bytes[0], bytes[1]); } /** * Returns the {@code short} value whose byte representation is the given 2 bytes, in big-endian
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/smb1/trans/SmbComTransaction.java
public static final byte TRANS2_SET_FILE_INFORMATION = (byte) 0x08; /** * Network share enumeration subcommand */ public static final byte NET_SHARE_ENUM = (byte) 0x00; /** * Network server enumeration subcommand version 2 */ public static final byte NET_SERVER_ENUM2 = (byte) 0x68; /** * Network server enumeration subcommand version 3 */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvSingleHost.java
public AvSingleHost(final Configuration cfg) { this(new byte[8], cfg.getMachineId()); } /** * Constructs an AvSingleHost with custom data and machine ID * * @param customData custom data for the single host (8 bytes) * @param machineId the machine identifier (32 bytes) */ public AvSingleHost(final byte[] customData, final byte[] machineId) { this(encode(customData, machineId)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
buffer.put(domainNameBytes); buffer.put((byte) 0x00); // Null terminator byte[] byteData = buffer.array(); // Call the method int bytesRead = response.readBytesWireFormat(byteData, 0); // Assertions // readBytesWireFormat returns bytes processed up to null terminator assertEquals(14, bytesRead); // 8 bytes key + 6 bytes domain name
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
// Test with negative byte values byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F }; assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2) assertEquals("FFFE", Hexdump.toHexString(data2, 0, 4)); // 4 chars = 2 bytes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
long expectedTimestamp = -1L; // Represents all bits set to 1 for an 8-byte long byte[] rawBytes = new byte[8]; SMBUtil.writeInt8(expectedTimestamp, rawBytes, 0); AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertEquals(expectedTimestamp, avTimestamp.getTimestamp()); } /** * Test round-trip conversion: long -> bytes -> long. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
// Test with file ID having maximum byte values byte[] maxFileId = new byte[16]; Arrays.fill(maxFileId, (byte) 0xFF); Smb2FlushRequest maxRequest = new Smb2FlushRequest(mockConfig, maxFileId); byte[] buffer = new byte[256]; int written = maxRequest.writeBytesWireFormat(buffer, 0); assertEquals(24, written); byte[] copiedFileId = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); byte[] b = new byte[data.length]; in.readFully(b); assertEquals(Bytes.asList(data), Bytes.asList(b)); } public void testReadUnsignedByte_eof() throws IOException { DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0])); assertThrows(EOFException.class, () -> in.readUnsignedByte()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.9K bytes - Viewed (0)