- Sort Score
- Result 10 results
- Languages All
Results 441 - 450 of 1,385 for 1byte (0.08 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
// Test reading parameter words from wire format response = new SmbComQueryInformationResponse(mockConfig, 0L); // Prepare test data byte[] buffer = new byte[256]; int bufferIndex = 0; // Set wordCount to non-zero setFieldValue(response, "wordCount", 10); // Write test data to bufferRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
* @throws GeneralSecurityException * if the signing algorithm cannot be initialized * */ public Smb2SigningDigest(final byte[] sessionKey, final int dialect, final byte[] preauthIntegrityHash) throws GeneralSecurityException { switch (dialect) { case Smb2Constants.SMB2_DIALECT_0202: case Smb2Constants.SMB2_DIALECT_0210:Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Given byte[] buffer = new byte[2048]; int offset = 0; setHeaderStart(response, 64); // Create a long filename StringBuilder longName = new StringBuilder(); for (int i = 0; i < 100; i++) { longName.append("test"); } String fileName = longName.toString();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K 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 bytesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/MD4.java
// save number of bits, casting the long to an array of 8 bytes // save low-order byte first. for (int i = 0; i < 8; i++) { tail[padLen + i] = (byte) (count * 8 >>> 8 * i); } engineUpdate(tail, 0, tail.length); final byte[] result = new byte[16]; // cast this MD4's context (array of 4 ints) into an array of 16 bytes.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransWaitNamedPipe.java
maxDataCount = 0; maxSetupCount = (byte) 0x00; setupCount = 2; } @Override int writeSetupWireFormat(final byte[] dst, int dstIndex) { dst[dstIndex] = subCommand; dstIndex++; dst[dstIndex++] = (byte) 0x00; dst[dstIndex++] = (byte) 0x00; // no FID dst[dstIndex++] = (byte) 0x00; return 4; } @OverrideRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
*/ @Test public void testWriteParameterWordsWireFormat() { // Given int fid = 456; long lastWriteTime = System.currentTimeMillis(); SmbComClose smbComClose = new SmbComClose(config, fid, lastWriteTime); byte[] dst = new byte[6]; // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
// Simulate reading less than 6 bytes. when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(5); // Simulate reading only 5 bytes SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); byte[] buffer = new byte[6]; // Assert that an IOException is thrown with the expected message.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
hashAlgos[i] = i; } byte[] salt = new byte[256]; new Random(123).nextBytes(salt); PreauthIntegrityNegotiateContext originalContext = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); byte[] largeBuffer = new byte[4096]; int encoded = originalContext.encode(largeBuffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComDeleteDirectory.java
} @Override protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dst[dstIndex] = (byte) 0x04; dstIndex++; dstIndex += writeString(this.path, dst, dstIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0)