- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 242 for writeInt2 (0.16 seconds)
-
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
testBuffer[1] = 0x00; // padding SMBUtil.writeInt2(0x8004, testBuffer, 2); // type SMBUtil.writeInt4(0, testBuffer, 4); // owner offset SMBUtil.writeInt4(0, testBuffer, 8); // group offset SMBUtil.writeInt4(100, testBuffer, 12); // SACL offset (non-zero but ignored) SMBUtil.writeInt4(0, testBuffer, 16); // DACL offset
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/internal/smb2/ioctl/ValidateNegotiateInfoRequest.java
final int start = dstIndex; SMBUtil.writeInt4(this.capabilities, dst, dstIndex); dstIndex += 4; System.arraycopy(this.clientGuid, 0, dst, dstIndex, 16); dstIndex += 16; SMBUtil.writeInt2(this.securityMode, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.dialects.length, dst, dstIndex); dstIndex += 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
// Create a valid buffer with structure size 24 byte[] buffer = new byte[64]; int bufferIndex = 0; // Write structure size (24) SMBUtil.writeInt2(24, buffer, bufferIndex); // Write oplock level at offset 2 byte expectedOplockLevel = (byte) 0x02; // SMB2_OPLOCK_LEVEL_II buffer[bufferIndex + 2] = expectedOplockLevel;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
final int start = dstIndex; SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex); dstIndex += 2; final byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE); System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length); dstIndex += pathBytes.length; SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // null terminatorCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWrite.java
final int start = dstIndex; SMBUtil.writeInt2(this.fid, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.count, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt4(this.offset, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt2(this.remaining, dst, dstIndex); dstIndex += 2; return dstIndex - start; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
// Write context header SMBUtil.writeInt4(0, buffer, offset); // Next (offset to next context, 0 for last) offset += 4; SMBUtil.writeInt2(16, buffer, offset); // NameOffset (from start of context) offset += 2; SMBUtil.writeInt2(4, buffer, offset); // NameLength offset += 2; SMBUtil.writeInt2(0, buffer, offset); // Reserved offset += 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
SMBUtil.writeInt4(this.desiredAccess, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.fileAttributes, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.shareAccess, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.createDisposition, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.createOptions, dst, dstIndex); dstIndex += 4;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 22.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
buffer[34] = (byte) 0x42; // andxCommand SMBUtil.writeInt2(83, buffer, 36); // andxOffset (33 + 50) SMBUtil.writeInt2(20, buffer, 42); // byteCount // Setup andx command data at offset 83 (absolute position from buffer start) buffer[83] = 2; // andx wordCount SMBUtil.writeInt2(10, buffer, 88); // andx byteCount int length = testBlock.decode(buffer, 0);
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/nego/PreauthIntegrityNegotiateContextTest.java
void testDecodeMultipleHashAlgosWithSalt() throws SMBProtocolDecodingException { SMBUtil.writeInt2(3, buffer, 0); SMBUtil.writeInt2(2, buffer, 2); SMBUtil.writeInt2(0x01, buffer, 4); SMBUtil.writeInt2(0x02, buffer, 6); SMBUtil.writeInt2(0x03, buffer, 8); byte[] salt = { 0x0A, 0x0B }; System.arraycopy(salt, 0, buffer, 10, 2);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 34K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java
int idx = 0; SMBUtil.writeInt2(minVersion, data, idx); idx += 2; SMBUtil.writeInt2(maxVersion, data, idx); idx += 2; SMBUtil.writeInt2(reserved, data, idx); idx += 2; SMBUtil.writeInt2(creditsRequested, data, idx); idx += 2; SMBUtil.writeInt4(preferredSendSize, data, idx); idx += 4; SMBUtil.writeInt4(maxReceiveSize, data, idx);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 5.4K bytes - Click Count (0)