- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 341 for rewritten (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
byte[] dst = new byte[10]; // writeSetupWireFormat writes 4 bytes: // - subCommand byte // - 3 zero bytes (padding and no FID) int written = pipe.writeSetupWireFormat(dst, 0); assertEquals(4, written, "Setup should write 4 bytes"); assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0], "First byte should be subCommand"); assertEquals(0, dst[1], "Second byte should be 0");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java
byte[] dst = new byte[2]; int written = neg.writeParameterWordsWireFormat(dst, 0); assertEquals(2, written); assertArrayEquals(new byte[] { (byte) 0xFF, (byte) 0xFF }, dst, "Negative sid should wrap to 0xFFFF"); } @Test void testWriteParameterWordsWithOffset() { byte[] dst = new byte[5]; int written = instance.writeParameterWordsWireFormat(dst, 3);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
byte[] minBuffer = new byte[2]; int written = trans2QueryFSInfo.writeSetupWireFormat(minBuffer, 0); assertEquals(2, written); // Test with exact parameter size byte[] paramBuffer = new byte[2]; written = trans2QueryFSInfo.writeParametersWireFormat(paramBuffer, 0); assertEquals(2, written); // Test with zero-length data buffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
void testWriteSetupWireFormat() { Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(5); byte[] buf = newBuffer(10); int written = cmd.writeSetupWireFormat(buf, 0); assertEquals(2, written, "setup packet should write 2 bytes"); assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, buf[0], "first byte should be subCommand");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingOutputStream.java
/** * An {@link OutputStream} that maintains a hash of the data written to it. * * @author Zoe Piepmeier * @since 16.0 */ @Beta public final class HashingOutputStream extends FilterOutputStream { private final Hasher hasher; /** * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all * data written to it to the underlying {@link OutputStream}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java
// Execute the method int bytesWritten = transaction.writeParameterWordsWireFormat(dst, 0); // Verify the bytes written assertTrue(bytesWritten > 0); // Verify max setup count is written at position 0 assertEquals(2, dst[0]); // Verify reserved bytes assertEquals(0, dst[1]); assertEquals(0, dst[2]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
} int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should report 26 bytes written (20 from encode + 6 increment) assertEquals(26, written); // Check that padding bytes are zeros // The implementation writes 8 bytes with writeInt8 but only increments by 6 // This means bytes 20-27 will be zero (8 bytes written by writeInt8)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
* * @param s the short value to encode * @param dst the destination byte array * @param di the starting index in the destination array * @return the number of bytes written (2) */ public static int enc_uint16be(final short s, final byte[] dst, int di) { dst[di] = (byte) (s >> 8 & 0xFF); di++; dst[di] = (byte) (s & 0xFF); return 2; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteAndXResponse.java
*/ public SmbComWriteAndXResponse(final Configuration config) { super(config); } /** * Gets the number of bytes written. * * @return the count of bytes written */ public final long getCount() { return this.count; } @Override protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
import java.io.Writer; import java.nio.charset.Charset; import java.util.Iterator; import java.util.stream.Stream; /** * A destination to which characters can be written, such as a text file. Unlike a {@link Writer}, a * {@code CharSink} is not an open, stateful stream that can be written to and closed. Instead, it * is an immutable <i>supplier</i> of {@code Writer} instances. * * <p>{@code CharSink} provides two kinds of methods: * * <ul>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:07:06 UTC 2025 - 6.7K bytes - Viewed (0)