- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 343 for Shorts (0.02 sec)
-
src/main/java/jcifs/util/Encdec.java
* * @param src the source byte array * @param si the starting index in the source array * @return the decoded short value */ public static short dec_uint16be(final byte[] src, final int si) { return (short) ((src[si] & 0xFF) << 8 | src[si + 1] & 0xFF); } /** * Decodes a 32-bit unsigned integer from big-endian byte order. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/UnicodeString.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
ByteBuffer buffer = ByteBuffer.allocate(34); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putShort((short) 0); // dialectIndex buffer.put((byte) 0x0F); // securityMode (user, encrypted, sigs enabled, sigs required) buffer.putShort((short) 50); // maxMpxCount buffer.putShort((short) 10); // maxNumberVcs buffer.putInt(8192); // maxBufferSize buffer.putInt(65536); // maxRawSize
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Defaults.java
} else if (type == char.class) { return (T) Character.valueOf('\0'); } else if (type == byte.class) { return (T) Byte.valueOf((byte) 0); } else if (type == short.class) { return (T) Short.valueOf((short) 0); } else if (type == int.class) { return (T) Integer.valueOf(0); } else if (type == long.class) { return (T) Long.valueOf(0L); } else if (type == float.class) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
return this.dis.readByte(); } /** * Reads a 16-bit short value with proper alignment and byte order. * @return the short value in little-endian format * @throws IOException if an I/O error occurs */ public short readShort() throws IOException { align(2); return Short.reverseBytes(this.dis.readShort()); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
@BeforeEach void setUp() { // 10 bytes is more than enough for the 2-byte short raw = new byte[10]; buf = new NdrBuffer(raw, 0); } /** * Validate that the constructor masks the supplied value to its * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short). */ @ParameterizedTest @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
return new DataInputStream(in).readUTF(); } /** * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using * little-endian byte order. * * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian * byte order. * @throws IOException if an I/O error occurs. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
} @Test @DisplayName("readUShort throws on too short array") void testReadUShortOutOfBounds() { byte[] a = new byte[] { 0x02 }; assertThrows(IndexOutOfBoundsException.class, () -\u003e NtlmMessage.readUShort(a, 0)); } @Test @DisplayName("readULong throws on too short array") void testReadULongOutOfBounds() { byte[] a = new byte[] { 0x01, 0x02, 0x03 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
byte[] buf = new byte[50]; byte[] inB = new byte[100]; // Setup fragment length in response buffer Encdec.enc_uint16le((short) 40, inB, 8); when(mockSmbPipeHandleInternal.isStale()).thenReturn(false); when(mockSmbPipeHandleInternal.sendrecv(buf, 0, 50, inB, 4280)).thenReturn(40);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/ConfigTest.java
void testGetInetAddressArray() throws UnknownHostException { testProperties.setProperty("test.hosts", "localhost,127.0.0.1"); InetAddress[] defaultArray = { InetAddress.getByName("0.0.0.0") }; InetAddress[] result = Config.getInetAddressArray(testProperties, "test.hosts", ",", defaultArray); assertEquals(2, result.length); assertEquals(InetAddress.getByName("localhost"), result[0]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0)