- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 23 for headerStart (0.1 seconds)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// Status SMBUtil.writeInt4(0, buffer, headerStart + 8); // Command (READ = 0x0008) SMBUtil.writeInt2(0x0008, buffer, headerStart + 12); // Credit request/response SMBUtil.writeInt2(1, buffer, headerStart + 14); // Flags SMBUtil.writeInt4(0, buffer, headerStart + 16); // Next command SMBUtil.writeInt4(0, buffer, headerStart + 20);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, headerStart + 16, headerStart + 32)); // File ID assertEquals(0, SMBUtil.readInt4(buffer, headerStart + 32)); // Channel assertEquals(500, SMBUtil.readInt4(buffer, headerStart + 36)); // Remaining bytes assertEquals(0, SMBUtil.readInt2(buffer, headerStart + 40)); // WriteChannelInfoOffset
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
void testWriteBytesWireFormat() throws Exception { // Given byte[] buffer = new byte[512]; int headerStart = 50; int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; // Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
} else { /* * Set bufferIndex according to andxOffset */ bufferIndex = headerStart + andxOffset; andx.headerStart = headerStart; andx.command = andxCommand; andx.errorCode = errorCode; andx.flags = flags; andx.flags2 = flags2; andx.tid = tid;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
* bufferIndex, and thus headerStart, would be 4).(NOTE: If one where * looking for a way to improve perfomance this is precisly what you * would want to do as the jcifs.smb1.netbios.SocketXxxputStream classes * arraycopy all data read or written into a new buffer shifted over 4!) */ byte command, flags;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) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Given request.setSessionBinding(true); byte[] buffer = new byte[512]; int headerStart = 50; // Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; // Verify structure size (25)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
this.retainPayload = retain; } public byte[] getRawPayload() { return rawPayload; } // Expose headerStart for testing public int getHeaderStart() { return headerStart; } } /** * Test implementation of SmbComNTCreateAndXResponse for testing */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
SMBUtil.writeInt4(8, buffer, bufferIndex + 4); response = spy(response); when(response.getHeaderStart()).thenReturn(headerStart); // Write FileInternalInfo data at calculated offset (headerStart + bufferOffset) SMBUtil.writeInt8(0xFEDCBA9876543210L, buffer, headerStart + 300); int result = response.readBytesWireFormat(buffer, bufferIndex);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
private void setHeaderStart(Smb2ChangeNotifyResponse response, int headerStart) throws Exception { Method method = ServerMessageBlock2.class.getDeclaredMethod("getHeaderStart"); method.setAccessible(true); Field field = ServerMessageBlock2.class.getDeclaredField("headerStart"); field.setAccessible(true); field.setInt(response, headerStart); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.3K bytes - Click Count (0)