- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for buildHeader (0.04 seconds)
-
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
import jcifs.internal.util.SMBUtil; import jcifs.smb.NtStatus; import jcifs.smb.SmbException; class Smb2IoctlResponseTest { // Helper: build a minimal SMB2 header with a given status private static byte[] buildHeader(int status) { byte[] hdr = new byte[64]; // SMB2 header is 64 bytes System.arraycopy(SMBUtil.SMB2_HEADER, 0, hdr, 0, 64); // Write Status (little-endian) at offset 8 in the SMB2 headerCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
} /** * Build a minimal SMB2 header for a response at the given offset. * The header is prepared as a synchronous response with server-to-redirector flag. */ private void buildHeader(byte[] buf, int start, int status, int command, long sessionId) { System.arraycopy(SMBUtil.SMB2_HEADER, 0, buf, start, SMBUtil.SMB2_HEADER.length); // Status at +8 SMBUtil.writeInt4(status, buf, start + 8);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0)