- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 255 for writeInt (0.04 sec)
-
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java
final int start = dstIndex; SMBUtil.writeInt2(9, dst, dstIndex); SMBUtil.writeInt2(this.treeFlags, dst, dstIndex + 2); dstIndex += 4; final byte[] data = this.path.getBytes(StandardCharsets.UTF_16LE); final int offsetOffset = dstIndex; SMBUtil.writeInt2(data.length, dst, dstIndex + 2); dstIndex += 4; SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
byte[] buffer = new byte[100]; // Write non-aligned next entry offset (not divisible by 4) SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4); SMBUtil.writeInt4(8, buffer, 8); // file name length assertThrows(SMBProtocolDecodingException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex); dstIndex += 2; if (this.ciphers != null) { for (final int cipher : this.ciphers) { SMBUtil.writeInt2(cipher, dst, dstIndex); dstIndex += 2; } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
void testDecode() throws SMBProtocolDecodingException { // Prepare buffer with known value long expectedValue = 0x0123456789ABCDEFL; byte[] buffer = new byte[16]; SMBUtil.writeInt8(expectedValue, buffer, 0); // Decode int bytesRead = fileInfo.decode(buffer, 0, buffer.length); // Verify bytes read assertEquals(8, bytesRead);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvPairs.java
final byte[] raw = p.getRaw(); SMBUtil.writeInt2(p.getType(), enc, pos); SMBUtil.writeInt2(raw.length, enc, pos + 2); System.arraycopy(raw, 0, enc, pos + 4, raw.length); pos += 4 + raw.length; } // MsvAvEOL SMBUtil.writeInt2(AvPair.MsvAvEOL, enc, pos); SMBUtil.writeInt2(0, enc, pos + 2); pos += 4; return enc; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java
*/ @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(24, dst, dstIndex); SMBUtil.writeInt2(this.closeFlags, dst, dstIndex + 2); dstIndex += 4; dstIndex += 4; // Reserved System.arraycopy(this.fileId, 0, dst, dstIndex, 16); dstIndex += 16;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
byte[] buffer = new byte[1024]; int bufferIndex = 100; // Write structure size = 4 SMBUtil.writeInt2(4, buffer, bufferIndex); int result = echoResponse.readBytesWireFormat(buffer, bufferIndex); assertEquals(0, result); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
time.Sleep(time.Duration(readRng.Intn(maxSleep))) } } }() // Writer { buf := make([]byte, 1024) writeRng := rand.New(rand.NewSource(2)) for range 2500 { writeRng.Read(buf) // Write n, err := rb.Write(buf[:writeRng.Intn(len(buf))]) if err != nil { t.Fatalf("write failed: %v", err) } wroteBytes += n wrote.Write(buf[:n])
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java
final int start = dstIndex; SMBUtil.writeInt2(this.hashAlgos != null ? this.hashAlgos.length : 0, dst, dstIndex); SMBUtil.writeInt2(this.salt != null ? this.salt.length : 0, dst, dstIndex + 2); dstIndex += 4; if (this.hashAlgos != null) { for (final int hashAlgo : this.hashAlgos) { SMBUtil.writeInt2(hashAlgo, dst, dstIndex); dstIndex += 2;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
setPrivateField(cmd, "maxReferralLevel", 0x12AB); byte[] buffer = new byte[100]; int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) assertEquals(0xAB, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0)