- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for putInt (0.09 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
buffer.order(ByteOrder.LITTLE_ENDIAN); // Create notification with non-aligned nextEntryOffset buffer.putInt(3); // Non-aligned nextEntryOffset (not divisible by 4) buffer.putInt(FileNotifyInformation.FILE_ACTION_ADDED); buffer.putInt(8); // File name length buffer.put("test.txt".getBytes("UTF-16LE")); assertThrows(SMBProtocolDecodingException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
buffer.putLong(1048576L); // Total allocation units (1M) buffer.putLong(524288L); // Free allocation units (512K) buffer.putInt(8); // Sectors per allocation unit buffer.putInt(512); // Bytes per sector byte[] bufferArray = buffer.array(); // When int bytesConsumed = fileFsSizeInfo.decode(bufferArray, 0, bufferArray.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
buffer.putLong(524288L); // Caller available allocation units (512K) buffer.putLong(524288L); // Actual free allocation units (512K) buffer.putInt(8); // Sectors per allocation unit buffer.putInt(512); // Bytes per sector byte[] bufferArray = buffer.array(); // When int bytesConsumed = fileFsFullSizeInfo.decode(bufferArray, 0, bufferArray.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
buffer.putInt(0, 0x12345678); assertEquals(0x12345678, NtlmMessage.readULong(data, 0), "Should read positive ULong correctly."); // Test with zero buffer.putInt(0, 0); assertEquals(0, NtlmMessage.readULong(data, 0), "Should read zero ULong correctly."); // Test with max int value (unsigned interpretation) buffer.putInt(0, 0xFFFFFFFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
buffer.put((byte) 0x00); // Padding buffer.putShort((short) 0x8004); // Control flags (SE_DACL_PRESENT | SE_SELF_RELATIVE) buffer.putInt(20); // Owner offset buffer.putInt(40); // Group offset buffer.putInt(0); // SACL offset (null) buffer.putInt(60); // DACL offset // Owner SID at offset 20 buffer.position(20); buffer.put((byte) 0x01); // Revision
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/internal/smb2/multichannel/NetworkInterfaceInfo.java
// Next field (4 bytes) - offset to next entry (0 for last entry) bb.putInt(0); // InterfaceIndex (4 bytes) bb.putInt(interfaceIndex); // Capability (4 bytes) bb.putInt(capability); // Reserved (4 bytes) - must be 0 bb.putInt(0); // LinkSpeed (8 bytes) - in bits per second bb.putLong((long) linkSpeed * 1000000L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
buffer.putShort((short) 50); // maxMpxCount buffer.putShort((short) 10); // maxNumberVcs buffer.putInt(8192); // maxBufferSize buffer.putInt(65536); // maxRawSize buffer.putInt(123456789); // sessionKey buffer.putInt(SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS); // capabilities buffer.putLong(new Date().getTime()); // serverTime
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractByteHasher.java
ByteBuffer scratch = scratch(); scratch.putShort(s); return update(scratch, Shorts.BYTES); } @Override @CanIgnoreReturnValue public Hasher putInt(int i) { ByteBuffer scratch = scratch(); scratch.putInt(i); return update(scratch, Ints.BYTES); } @Override @CanIgnoreReturnValue public Hasher putLong(long l) { ByteBuffer scratch = scratch();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 12:40:17 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
*/ private void writeLittleEndianInt(ByteArrayOutputStream baos, int value) { ByteBuffer buffer = ByteBuffer.allocate(4); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putInt(value); baos.write(buffer.array(), 0, 4); } /** * Test constructor with KERB_CHECKSUM_HMAC_MD5 type. * * @throws IOException if an I/O error occurs
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java
short data2 = (short) (mostSig >>> 16); // next 2 bytes short data3 = (short) mostSig; // next 2 bytes // Write in little-endian format as specified by MS-SMB2 bb.putInt(data1); // data1 (4 bytes, little-endian) bb.putShort(data2); // data2 (2 bytes, little-endian) bb.putShort(data3); // data3 (2 bytes, little-endian)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.5K bytes - Viewed (0)