- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 344 for 0xff (0.02 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
} @ParameterizedTest @DisplayName("Should read different oplock levels correctly") @ValueSource(bytes = { 0x00, 0x01, 0x02, 0x08, (byte) 0xFF }) void testReadDifferentOplockLevels(byte oplockLevel) throws Exception { byte[] buffer = createValidOplockBreakBuffer(oplockLevel, createTestData(16));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
return 33; } }; byte[] buffer = new byte[1024]; // Setup buffer after header buffer[33] = 4; // wordCount buffer[34] = (byte) 0xFF; // andxCommand buffer[36] = 0; // andxOffset low buffer[37] = 0; // andxOffset high SMBUtil.writeInt2(20, buffer, 42); // byteCount int length = testBlock.decode(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
@Test @DisplayName("Should not modify reserved field bytes") void testReservedFieldNotModified() { lock = new Smb2Lock(999L, 888L, 0xFF); // Fill buffer with non-zero values Arrays.fill(buffer, (byte) 0xFF); lock.encode(buffer, 0); // Reserved field bytes are not modified by the encode method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
for (int i = 0; i < dst.length; i++) { dst[i] = (byte) (i & 0xFF); } int startIndex = 5; int bytesWritten = notifyChange.writeSetupWireFormat(dst, startIndex); // Check that bytes before startIndex are unchanged for (int i = 0; i < startIndex; i++) { assertEquals((byte) (i & 0xFF), dst[i]); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
int alignedBytes = ndrBuffer.align(4, (byte) 0xFF); assertEquals(3, alignedBytes); // Should advance by 3 bytes (1 -> 4) assertEquals(4, ndrBuffer.getIndex()); assertEquals(4, ndrBuffer.getLength()); // Length should be updated // Verify filled bytes assertEquals((byte) 0xFF, buffer[1]); assertEquals((byte) 0xFF, buffer[2]); assertEquals((byte) 0xFF, buffer[3]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
doAnswer(inv -> { byte[] b = inv.getArgument(0); int off = inv.getArgument(1); b[off] = (byte) 0xFF; return 1; }).when(raf).read(any(byte[].class), anyInt(), eq(1)); assertTrue(raf.readBoolean()); assertEquals((byte) 0xFF, raf.readByte()); assertEquals(0xFF, raf.readUnsignedByte()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
byte[] quad = textToNumericFormatV4(dottedQuad); if (quad == null) { return null; } String penultimate = Integer.toHexString(((quad[0] & 0xff) << 8) | (quad[1] & 0xff)); String ultimate = Integer.toHexString(((quad[2] & 0xff) << 8) | (quad[3] & 0xff)); return initialPart + penultimate + ":" + ultimate; } private static byte parseOctet(String ipString, int start, int end) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java
} /** * Test of readParameterWordsWireFormat method */ @Test public void testReadParameterWordsWireFormat() { // Given byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 }; SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config); // When int result = instance.readParameterWordsWireFormat(buffer, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
final byte[] addr = localInetAddress.getAddress(); localHostname = "JCIFS" + (addr[2] & 0xFF) + "_" + (addr[3] & 0xFF) + "_" + Hexdump.toHexString((int) (Math.random() * 0xFF), 2); } /* * Create an NbtAddress for the local interface with * the name deduced above possibly with scope applied and
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
dialectIndex = readInt2(buffer, bufferIndex); bufferIndex += 2; if (dialectIndex > 10) { return bufferIndex - start; } server.securityMode = buffer[bufferIndex] & 0xFF; bufferIndex++; server.security = server.securityMode & 0x01; server.encryptedPasswords = (server.securityMode & 0x02) == 0x02; server.signaturesEnabled = (server.securityMode & 0x04) == 0x04;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 6K bytes - Viewed (0)