- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 184 for readInt2 (0.4 sec)
-
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
final int start = bufferIndex; this.chunksWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.chunkBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.totalBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; return bufferIndex - start; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
*/ public String readString() throws IOException, PACDecodingException { final int totalChars = readInt(); final int unusedChars = readInt(); final int usedChars = readInt(); if (unusedChars > totalChars || usedChars > totalChars - unusedChars) { throw new PACDecodingException("Malformed string in PAC"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
int bytesWritten = info.encode(buffer, 0); // Verify replaceIfExists flag assertEquals(1, buffer[0]); // Verify file name length int nameLength = SMBUtil.readInt4(buffer, 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java
this.nextEntryOffset = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; if (this.nextEntryOffset % 4 != 0) { throw new SMBProtocolDecodingException("Non aligned nextEntryOffset"); } this.action = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.fileNameLength = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
SMB1SigningDigest.writeUTime(mockConfig, testTime, dst, 0); int expectedSeconds = (int) (testTime / 1000L); int actualSeconds = SMBUtil.readInt4(dst, 0); assertEquals(expectedSeconds, actualSeconds); // Test when current time is in DST but test time is not when(mockTimeZone.inDaylightTime(any(Date.class))).thenReturn(true) // current time
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/Pac.java
int bufferCount = pacStream.readInt(); int version = pacStream.readInt(); if (version != PacConstants.PAC_VERSION) { throw new PACDecodingException("Unrecognized PAC version " + version); } for (int bufferIndex = 0; bufferIndex < bufferCount; bufferIndex++) { int bufferType = pacStream.readInt();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java
throw new SMBProtocolDecodingException("Invalid durable handle V2 response length: " + len); } this.timeout100Ns = SMBUtil.readInt4(buffer, bufferIndex) & 0xFFFFFFFFL; // Timeout (4 bytes, 100-ns intervals, unsigned) this.flags = SMBUtil.readInt4(buffer, bufferIndex + 4); // Flags (4 bytes) return 8; } /** * Get the timeout value in 100-nanosecond intervals (raw wire format)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java
System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16); this.leaseKey = new Smb2LeaseKey(keyBytes); bufferIndex += 16; this.leaseState = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.leaseFlags = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // LeaseDuration (8 bytes) - reserved, skip bufferIndex += 8; return bufferIndex - start;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoResponse.java
interfaces.clear(); while (bufferIndex < end && (bufferIndex + 152) <= end) { // Read Next field to determine if there are more entries int next = SMBUtil.readInt4(buffer, bufferIndex); NetworkInterfaceInfo info = NetworkInterfaceInfo.decode(buffer, bufferIndex); if (info != null) { interfaces.add(info); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
int bytesEncoded = fileInternalInfo.encode(destinationBuffer, 0); // Verify assertEquals(8, bytesEncoded); assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, 0)); } @Test @DisplayName("Test encode with buffer offset") void testEncodeWithBufferOffset() throws SMBProtocolDecodingException { // First decode to set internal state
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)