Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for bufferSize (0.49 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
            int[] bufferSizes = { 0, 10, 50, 100, 1024 };
    
            for (int bufferSize : bufferSizes) {
                byte[] dst = new byte[bufferSize];
    
                // When
                int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, 0);
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            @DisplayName("Should handle various buffer configurations")
            void testVariousBufferConfigurations(int bufferSize, int offset, int length) {
                byte[] buffer = new byte[bufferSize];
                FileFsSizeInformation info = new FileFsSizeInformation();
    
                if (offset + length <= bufferSize && length >= 24) {
                    assertDoesNotThrow(() -> {
                        info.decode(buffer, offset, length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

        T[] castBuffer = (T[]) buffer;
        sort(castBuffer, 0, bufferSize, comparator);
        if (bufferSize > k) {
          Arrays.fill(buffer, k, buffer.length, null);
          bufferSize = k;
          threshold = buffer[k - 1];
        }
        // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null)
        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            String testPath = "\\server\\share";
            byte[] pathBytes = testPath.getBytes(java.nio.charset.StandardCharsets.UTF_16LE);
            int bufferSize = stringDataStart + pathBytes.length + 2; // +2 for null terminator
            byte[] buffer = new byte[bufferSize];
    
            // Path consumed (2 bytes) - value: 10 * 2 = 20
            SMBUtil.writeInt2(20, buffer, 0);
    
            // Number of referrals (2 bytes) - value: 1
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

            int bufferSize;
            if (initialCapacity > 0 && initialCapacity <= MAX_BUF_SIZE) {
                bufferSize = initialCapacity;
            } else {
                bufferSize = DEFAULT_BUF_SIZE;
            }
            char[] buf = new char[bufferSize];
            int size = 0;
            int len;
            try {
                while ((len = reader.read(buf, size, bufferSize - size)) != -1) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

          }
          OPCODE_CONTROL_CLOSE -> {
            var code = CLOSE_NO_STATUS_CODE
            var reason = ""
            val bufferSize = controlFrameBuffer.size
            if (bufferSize == 1L) {
              throw ProtocolException("Malformed close payload length of 1.")
            } else if (bufferSize != 0L) {
              code = controlFrameBuffer.readShort().toInt()
              reason = controlFrameBuffer.readUtf8()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 10K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

         * @return The buffer size
         */
        public int getBufferSize() {
            return bufferSize;
        }
    
        /**
         * Sets the buffer size for data transfers.
         *
         * @param bufferSize The buffer size
         */
        public void setBufferSize(final int bufferSize) {
            this.bufferSize = bufferSize;
        }
    
        /**
         * Gets the local IP address for passive mode FTP.
         *
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 40K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

        void testWriteBytesWireFormatWithDifferentBufferSizes(int bufferSize) {
            request = new Smb2QueryInfoRequest(mockConfig, testFileId);
    
            if (bufferSize > 0) {
                Encodable mockInputBuffer = mock(Encodable.class);
                when(mockInputBuffer.encode(any(byte[].class), anyInt())).thenReturn(bufferSize);
                when(mockInputBuffer.size()).thenReturn(bufferSize);
    
                try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            @DisplayName("Should handle maximum buffer index")
            void testMaxBufferIndex() throws SMBProtocolDecodingException {
                // Given
                int bufferSize = 10000;
                byte[] buffer = new byte[bufferSize];
                int bufferIndex = bufferSize - 4;
                SMBUtil.writeInt2(4, buffer, bufferIndex);
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2);
    
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

         *
         * @param sessionId unique identifier for the process session
         * @param cmdList list of command and arguments to execute
         * @param pbCall callback to configure the ProcessBuilder
         * @param bufferSize size of the buffer for process output
         * @param outputCallback callback to handle process output lines
         * @return JobProcess representing the started process
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 06:54:47 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top