- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 234 for writeInt4 (0.04 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Serialization.java
Multiset<E> multiset, ObjectOutputStream stream) throws IOException { int entryCount = multiset.entrySet().size(); stream.writeInt(entryCount); for (Multiset.Entry<E> entry : multiset.entrySet()) { stream.writeObject(entry.getElement()); stream.writeInt(entry.getCount()); } } /** * Populates a multiset by reading an input stream, as part of deserialization. See {@link
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java
* @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int) */ @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { SMBUtil.writeInt2(4, dst, dstIndex); SMBUtil.writeInt2(0, dst, dstIndex + 2); return 4; } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
val totalRuleBytes: Int, val totalExceptionRuleBytes: Int, ) { fun writeOut(sink: BufferedSink) { with(sink) { writeInt(totalRuleBytes) for (domain in sortedRules) { write(domain).writeByte(NEWLINE) } writeInt(totalExceptionRuleBytes) for (domain in sortedExceptionRules) { write(domain).writeByte(NEWLINE) } } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Aug 06 05:33:11 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComFindClose2.java
SmbComFindClose2(final int sid) { this.sid = sid; command = SMB_COM_FIND_CLOSE2; } @Override int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { writeInt2(sid, dst, dstIndex); return 2; } @Override int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
// Arrange: build a buffer that has the little-endian value 4 at 'start' int len = start + 2; // need at least two bytes from start byte[] buffer = new byte[len + 3]; SMBUtil.writeInt2(4, buffer, start); Smb2LogoffResponse resp = newResponse(); // Act int read = resp.readBytesWireFormat(buffer, start); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComDelete.java
command = SMB_COM_DELETE; searchAttributes = ATTR_HIDDEN | ATTR_HIDDEN | ATTR_SYSTEM; } @Override int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { writeInt2(searchAttributes, dst, dstIndex); return 2; } @Override int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dst[dstIndex] = (byte) 0x04;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2K bytes - Viewed (0)