Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for bufferSize (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/BufferCache.java

                return buf;
            }
    
            // Validate buffer size to prevent overflow
            int bufferSize = SmbComTransaction.TRANSACTION_BUF_SIZE;
            if (bufferSize < 0 || bufferSize > MAX_BUFFER_SIZE) {
                throw new IllegalStateException("Invalid buffer size: " + bufferSize);
            }
    
            return new byte[bufferSize];
        }
    
        static void getBuffers(final SmbComTransaction req, final SmbComTransactionResponse rsp) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/FlowControlListener.kt

       * [WindowCounter] generally carries the client view of total and acked bytes.
       */
      fun receivingStreamWindowChanged(
        streamId: Int,
        windowCounter: WindowCounter,
        bufferSize: Long,
      )
    
      /**
       * Notification that the receiving connection flow control window has changed.
       * [WindowCounter] generally carries the client view of total and acked bytes.
       */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/JobProcess.java

         *
         * @param process the system process to wrap
         * @param bufferSize the buffer size for reading process output
         * @param outputCallback the callback function to handle process output lines
         */
        public JobProcess(final Process process, final int bufferSize, final Consumer<String> outputCallback) {
            this.process = process;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/Pac.java

                    int bufferType = pacStream.readInt();
                    int bufferSize = pacStream.readInt();
                    long bufferOffset = pacStream.readLong();
    
                    if (bufferOffset % 8 != 0) {
                        throw new PACDecodingException("Unaligned buffer " + bufferType);
                    }
    
                    byte[] bufferData = new byte[bufferSize];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K 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: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 39.5K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

                final int bufferSize, final Consumer<String> outputCallback) {
            final ProcessBuilder pb = new ProcessBuilder(cmdList);
            pbCall.accept(pb);
            destroyProcess(sessionId);
            JobProcess jobProcess;
            try {
                jobProcess = new JobProcess(pb.start(), bufferSize, outputCallback);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top