- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 145 for 0xffff (0.07 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals((byte) ((value >> 8) & 0xFF), dst[0]); assertEquals((byte) (value & 0xFF), dst[1]); } @Test @DisplayName("writeInt2 with offset should write at correct position") void testWriteInt2WithOffset() { byte[] dst = new byte[10]; dst[2] = (byte) 0xFF; // Mark position dst[3] = (byte) 0xFF; SessionServicePacket.writeInt2(0xABCD, dst, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
// Test maximum unsigned 16-bit value (65535) SMBUtil.writeInt2(0xFFFF, buffer, 0); TransPeekNamedPipeResponse response2 = new TransPeekNamedPipeResponse(mockConfig); response2.readParametersWireFormat(buffer, 0, 6); assertEquals(0xFFFF, response2.getAvailable()); } @Test @DisplayName("Test large buffer handling")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
try { System.arraycopy(this.sbuf, 0, buffer, 0, 4 + SMB1_HEADER_LENGTH); final int size = Encdec.dec_uint16be(buffer, 2) & 0xFFFF; if (size < SMB1_HEADER_LENGTH + 1 || 4 + size > Math.min(0xFFFF, getContext().getConfig().getMaximumBufferSize())) { throw new IOException("Invalid payload size: " + size); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS; // 2048 private static final long THREE_BYTE_SURROGATES = 2 * 1024; // 61,440 [chars 0x0800 to 0xFFFF, minus surrogates] private static final long THREE_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0xFFFF - 0x0800 + 1 - THREE_BYTE_SURROGATES; // 2,650,112 private static final long EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT = // All one byte characters
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbConstantsTest.java
assertEquals(30000, SmbConstants.DEFAULT_RESPONSE_TIMEOUT); assertEquals(35000, SmbConstants.DEFAULT_SO_TIMEOUT); assertEquals(0xFFFF, SmbConstants.DEFAULT_RCV_BUF_SIZE); assertEquals(0xFFFF, SmbConstants.DEFAULT_SND_BUF_SIZE); assertEquals(1024, SmbConstants.DEFAULT_NOTIFY_BUF_SIZE); assertEquals(250, SmbConstants.DEFAULT_SSN_LIMIT);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
} else if (this.largeReadX) { // Optimize large read requests request.setMaxCount(r & 0xFFFF); request.setOpenTimeout(r >> 16 & 0xFFFF); } th.send(request, response, RequestParam.NO_RETRY); n = response.getDataLength();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
// we can get away with i++ because the whole point of this method is to return false if we find // a code point that doesn't fit in a char. for (int i = 0; i < string.length(); i++) { if (string.codePointAt(i) > 0xffff) { return false; } } return true; } @SuppressWarnings("deprecation") public void testSimpleStringUtf8() { assertEquals(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8); int expected = level & 0xFFFF; assertEquals(expected, written); } // Helper method to extract string from buffer private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
int bufferIndex = 0; // Set maximum values int testCapabilities = 0xFFFFFFFF; byte[] testGuid = new byte[16]; Arrays.fill(testGuid, (byte) 0xFF); int testSecurityMode = 0xFFFF; int testDialect = 0xFFFF; // Write to buffer SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex); System.arraycopy(testGuid, 0, buffer, bufferIndex + 4, 16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
} SmbFileInputStream(final SmbFile file, final int openFlags) throws SmbException, MalformedURLException, UnknownHostException { this.file = file; this.openFlags = openFlags & 0xFFFF; this.access = openFlags >>> 16 & 0xFFFF; if (file.type != SmbFile.TYPE_NAMED_PIPE) { file.open(openFlags, access, SmbFile.ATTR_NORMAL, 0); this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0)