- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 215 for writeInt8 (0.05 seconds)
-
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
byte[] buffer = new byte[32]; // Mock data for FsFullSizeInformation writeInt8(3000, buffer, 0); // total allocation units writeInt8(1500, buffer, 8); // caller available allocation units writeInt8(1500, buffer, 16); // actual free units (skipped) writeInt4(4, buffer, 24); // sectors per allocation unit writeInt4(8192, buffer, 28); // bytes per sector
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java
writeTime(createTime, dst, dstIndex); dstIndex += 8; writeInt8(0L, dst, dstIndex); dstIndex += 8; writeTime(lastWriteTime, dst, dstIndex); dstIndex += 8; writeInt8(0L, dst, dstIndex); dstIndex += 8; /* Samba 2.2.7 needs ATTR_NORMAL */ writeInt2(0x80 | attributes, dst, dstIndex); dstIndex += 2; /* 6 zeros observed with NT */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
assertEquals(0, (dst[5] << 8) | (dst[4] & 0xFF)); } @Test void testWriteDataWireFormat() { // Given // writeInt8 writes 8 bytes but needs to access dst[dstIndex+7] // Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42]; // When
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
* @param val the value to write * @param dst the destination byte array * @param dstIndex the starting index in the destination array */ public static void writeInt8(long val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dstIndex++; dst[dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >>= 8);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8K bytes - Click Count (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
@Test void testNegativeValueHandling() { byte[] buffer = new byte[8]; // Test negative values in writeInt4 SMBUtil.writeInt4(-1L, buffer, 0); assertEquals(-1, SMBUtil.readInt4(buffer, 0)); // Test negative values in writeInt8 SMBUtil.writeInt8(-1L, buffer, 0); assertEquals(-1L, SMBUtil.readInt8(buffer, 0)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
dst[dstIndex + CMD_OFFSET] = command; dst[dstIndex + FLAGS_OFFSET] = flags; writeInt2(flags2, dst, dstIndex + FLAGS_OFFSET + 1); dstIndex += TID_OFFSET; writeInt2(tid, dst, dstIndex); writeInt2(pid, dst, dstIndex + 2); writeInt2(uid, dst, dstIndex + 4); writeInt2(mid, dst, dstIndex + 6); return HEADER_LENGTH; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.7K bytes - Click Count (0) -
docs/smb3-features/01-smb3-lease-design.md
writeInt4(buffer, dataOffset + 16, leaseState); // LeaseState writeInt4(buffer, dataOffset + 20, leaseFlags); // LeaseFlags writeInt8(buffer, dataOffset + 24, leaseDuration); // LeaseDuration if (isV2()) { System.arraycopy(parentLeaseKey.getKey(), 0, buffer, dataOffset + 32, 16); // ParentLeaseKey writeInt2(buffer, dataOffset + 48, epoch); // EpochCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 22K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java
namelen_index = dstIndex; dstIndex += 2; writeInt4(flags0, dst, dstIndex); dstIndex += 4; writeInt4(rootDirectoryFid, dst, dstIndex); dstIndex += 4; writeInt4(desiredAccess, dst, dstIndex); dstIndex += 4; writeInt8(allocationSize, dst, dstIndex); dstIndex += 8; writeInt4(extFileAttributes, dst, dstIndex); dstIndex += 4;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
assertEquals(26, written); // Check that padding bytes are zeros // The implementation writes 8 bytes with writeInt8 but only increments by 6 // This means bytes 20-27 will be zero (8 bytes written by writeInt8) for (int i = 20; i < 28; i++) { assertEquals(0, buffer[i], "Padding byte at position " + i + " should be 0"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.8K bytes - Click Count (0)