- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for isSigned (0.41 sec)
-
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
assertEquals(0xFFFFFFFF, Smb2Constants.UNSPECIFIED_TREEID, "Unspecified TreeId must be 0xFFFFFFFF"); assertEquals(-1, Smb2Constants.UNSPECIFIED_TREEID, "Unspecified TreeId as signed int should be -1"); } @Test @DisplayName("Unspecified SessionId should be 0xFFFFFFFFFFFFFFFF") void testUnspecifiedSessionId() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
* Returns <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code>, * <code>false</code> otherwise. * * @param type * the type to check. Cannot be null. * @param clazz * the class to check against. Cannot be null. * @return <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code> */
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportPoolTest.java
SmbTransport signed = transportPool.getSmbTransport(context, address, DEFAULT_PORT, false, true); // Then assertEquals(sharedTransport, shared); assertEquals(exclusiveTransport, exclusive); assertEquals(signedTransport, signed); verify(transportPool).getSmbTransport(context, address, DEFAULT_PORT, false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
bufferIndex += 4; this.server.serverTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; int tzOffset = SMBUtil.readInt2(buffer, bufferIndex); // tzOffset is signed! if (tzOffset > Short.MAX_VALUE) { tzOffset = -1 * (65536 - tzOffset); } this.server.serverTimeZone = tzOffset; bufferIndex += 2;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
int bytesRead = response.readBytesWireFormat(buffer, 0); assertEquals(16, bytesRead); assertEquals(-1, response.getCount()); // -1 as signed int represents max unsigned value assertEquals(-2, response.getRemaining()); } private byte[] createValidWriteResponse(int count, int remaining) { byte[] buffer = new byte[64];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/ACETest.java
@Test @DisplayName("Should handle signed/unsigned integer boundaries") void shouldHandleSignedUnsignedBoundaries() { // Test that GENERIC_READ is the highest bit (0x80000000) assertEquals(0x80000000, ACE.GENERIC_READ, "GENERIC_READ should be 0x80000000"); assertTrue(ACE.GENERIC_READ < 0, "GENERIC_READ should be negative when treated as signed int");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
void testReadParameterWords(int expectedInt, byte[] bytes) { // The implementation reads via SMBUtil.readInt4 which returns an int // When assigned to a long field, it gets sign-extended int readLen = response.readParameterWordsWireFormat(bytes, 0); long expectedOffset = expectedInt; // Sign extension happens here for negative values
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
@ParameterizedTest @CsvSource({ "1, 1", // DISK "2, 2", // PIPE "3, 3", // PRINT "0, 0", // Unknown "255, -1" // Byte overflow to signed }) void testDifferentShareTypes(int shareTypeValue, int expectedValue) throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(16, buffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
assertEquals("Expected structureSize = 4", exception.getMessage()); } @Test @DisplayName("Should handle signed byte value correctly") void testReadBytesWireFormatSignedByteValue() { // Given byte[] buffer = new byte[10]; // Write 4 in little-endian format buffer[0] = 0x04;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
} @Test @DisplayName("Test decode with negative values") void testDecodeWithNegativeValues() throws SMBProtocolDecodingException { // Prepare test data with negative values (when interpreted as signed) byte[] buffer = new byte[16]; int bufferIndex = 0; // Set up negative values int namedPipeState = -1; int readDataAvailable = -100; int numberOfMessages = -200;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0)