Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,018 for writes (1.63 sec)

  1. src/main/java/jcifs/internal/util/SMBUtil.java

    public class SMBUtil {
    
        /**
         * Private constructor to prevent instantiation of utility class.
         */
        private SMBUtil() {
        }
    
        /**
         * Writes a 16-bit integer value to a byte array in little-endian format
         * @param val the value to write
         * @param dst the destination byte array
         * @param dstIndex the starting index in the destination array
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        }
    
        /**
         * Verify that writeParameterWordsWireFormat writes the file id and the
         * unsigned time correctly.  The last write time is zero which should be
         * encoded as four 0xFF bytes by {@code writeUTime}.
         */
        @ParameterizedTest(name = "fid={0}, lastWriteTime={1}")
        @MethodSource("validParams")
        @DisplayName("happy: writeParameterWordsWireFormat writes correct bytes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            int len = cmd.writeParametersWireFormat(buffer, 0);
            assertTrue(len >= 2);
            // writeInt2 writes in little-endian format (LSB first)
            int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8);
            int expected = level & 0xFFFF;
            assertEquals(expected, written);
        }
    
        // Helper method to extract string from buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        }
    
        // ---------------- Static write tests -----------------
        @Test
        @DisplayName("writeULong writes little endian bytes")
        void testWriteULong() {
            byte[] dest = new byte[4];
            NtlmMessage.writeULong(dest, 0, 0x01020304);
            assertArrayEquals(new byte[] { 4, 3, 2, 1 }, dest, "Writer must be little‑endian");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        }
    
        /**
         * Writes setup data in wire format
         * @param dst destination buffer
         * @param dstIndex starting index in destination buffer
         * @return number of bytes written
         */
        protected abstract int writeSetupWireFormat(byte[] dst, int dstIndex);
    
        /**
         * Writes parameters in wire format
         * @param dst destination buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

        }
    
        /**
         * Calculate average write latency in microseconds
         *
         * @return average write latency
         */
        public double getAverageWriteLatencyMicros() {
            long writes = rdmaWrites.get();
            if (writes == 0) {
                return 0.0;
            }
            return totalWriteTime.get() / (double) writes / 1000.0; // Convert to microseconds
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java

        }
    
        @Test
        @DisplayName("writeSetupWireFormat writes the subCommand and a trailing 0")
        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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileOutputStream.java

            }
        }
    
        /**
         * Writes the specified byte to this file output stream.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public void write(final int b) throws IOException {
            this.tmp[0] = (byte) b;
            write(this.tmp, 0, 1);
        }
    
        /**
         * Writes b.length bytes from the specified byte array to this
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals(off, getFieldValue(write, "off"), "Off should be updated");
            assertEquals(len, getFieldValue(write, "count"), "Count should be updated");
            assertEquals(SMB_COM_WRITE, write.command, "Command should be SMB_COM_WRITE");
        }
    
        /**
         * Test writeParameterWordsWireFormat writes correct bytes
         */
        @Test
        public void testWriteParameterWordsWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // Decode to new instance (decode reads 36 bytes, encode writes 40)
            FileBasicInfo decoded = new FileBasicInfo();
            int decodedBytes = decoded.decode(buffer, 0, 36);
    
            // Verify encoding/decoding
            assertEquals(40, encodedBytes); // encode writes 40 bytes (includes padding)
            assertEquals(36, decodedBytes); // decode reads 36 bytes (no padding)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top