- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 127 for writeInt8 (0.11 sec)
-
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 */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
public class AvTimestampTest { /** * Test constructor with raw bytes. */ @Test public void testConstructorWithRawBytes() { byte[] rawBytes = new byte[8]; SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertNotNull(avTimestamp); assertEquals(AvPair.MsvAvTimestamp, avTimestamp.getType());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.sourceOffset, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.targetOffset, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.length, dst, dstIndex); dstIndex += 4; dstIndex += 4; // reserved return dstIndex - start; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2Lock.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.offset, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.length, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.flags, dst, dstIndex); dstIndex += 4; dstIndex += 4; // Reserved return dstIndex - start; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileStandardInfo.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.allocationSize, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.endOfFile, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.numberOfLinks, dst, dstIndex); dstIndex += 4; dst[dstIndex] = (byte) (this.deletePending ? 1 : 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.7K bytes - Viewed (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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
SMBUtil.writeInt4(this.originalMessageSize, dst, dstIndex); dstIndex += 4; // Reserved (2 bytes) SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // Flags (2 bytes) SMBUtil.writeInt2(this.flags, dst, dstIndex); dstIndex += 2; // Session ID (8 bytes) SMBUtil.writeInt8(this.sessionId, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0)