- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 260 for bufferIndex (0.05 sec)
-
src/main/java/jcifs/internal/util/SMBUtil.java
* @param buffer the source byte array * @param bufferIndex the starting index in the source array * @return the time value in milliseconds since January 1, 1970 UTC */ public static long readUTime(final byte[] buffer, final int bufferIndex) { return (readInt4(buffer, bufferIndex) & 0xFFFFFFFFL) * 1000L; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
// Test decode method byte[] buffer = new byte[512]; int bufferIndex = 0; int expectedDecodeLength = 128; when(response.decode(buffer, bufferIndex)).thenReturn(expectedDecodeLength); assertEquals(expectedDecodeLength, response.decode(buffer, bufferIndex)); // Test encode method byte[] dst = new byte[512]; int dstIndex = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
byte[] buffer = new byte[60]; int bufferIndex = 0; // Structure Size (2 bytes) - must be 60 SMBUtil.writeInt2(60, buffer, bufferIndex); // Flags (2 bytes) SMBUtil.writeInt2(SMB2_CLOSE_FLAG_POSTQUERY_ATTIB, buffer, bufferIndex + 2); // Reserved (4 bytes) SMBUtil.writeInt4(0, buffer, bufferIndex + 4); // Creation Time (8 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java
protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex; final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) { throw new SMBProtocolDecodingException("Expected structureSize = 4"); } return bufferIndex - start; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
int bufferIndex = 5; // Start at offset 5 long expectedAllocationSize = 2048L; long expectedEndOfFile = 1536L; int expectedNumberOfLinks = 5; boolean expectedDeletePending = true; boolean expectedDirectory = true; // Encode test data at offset int offset = bufferIndex;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
byte[] buffer = new byte[256]; int bufferIndex = 0; SMBUtil.writeInt2(9, buffer, bufferIndex); // structure size buffer[bufferIndex + 2] = 0; // error context count SMBUtil.writeInt4(0, buffer, bufferIndex + 4); // zero byte count int bytesRead = testMessage.readErrorResponse(buffer, bufferIndex); assertEquals(8, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransCallNamedPipeResponse.java
} @Override int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) { if (pipe.pipeIn != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferral.java
protected int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
int fileSize = 12345678; SMBUtil.writeInt2(fileAttributes, buffer, bufferIndex); SMBUtil.writeUTime(lastWriteTime, buffer, bufferIndex + 2); SMBUtil.writeInt4(fileSize, buffer, bufferIndex + 6); // Read the data int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex); // Verify results assertEquals(20, bytesRead);
Registered: 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/smb1/smb1/SmbComOpenAndX.java
return dstIndex - start; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0)