Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 98 for 4096 (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals(0L, SMBUtil.readInt8(buffer, offset));
                assertEquals(1024L, SMBUtil.readInt8(buffer, offset + 8));
                assertEquals(4096, SMBUtil.readInt4(buffer, offset + 16));
    
                offset += CHUNK_SIZE;
                assertEquals(4096L, SMBUtil.readInt8(buffer, offset));
                assertEquals(5120L, SMBUtil.readInt8(buffer, offset + 8));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/CurlResponse.java

         *
         * @return the content as a string.
         * @throws CurlException if an error occurs while accessing the content.
         */
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            assertEquals(8, size);
            assertEquals(8, encoded);
            assertEquals(8, decoded);
            assertNotNull(str);
            assertTrue(str.contains("4096"));
        }
    
        /**
         * Test FileInformation constants match expected protocol values
         */
        @Test
        @DisplayName("Test FileInformation constants match SMB protocol values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

    class Http2Reader(
      /** Creates a frame reader with max header table size of 4096. */
      private val source: BufferedSource,
      private val client: Boolean,
    ) : Closeable {
      private val continuation: ContinuationSource = ContinuationSource(this.source)
      private val hpackReader: Hpack.Reader =
        Hpack.Reader(
          source = continuation,
          headerTableSizeSetting = 4096,
        )
    
      @Throws(IOException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true); // simplifies stream init
            when(tree.getReceiveBufferSize()).thenReturn(4096);
    
            // Act: first calls construct streams, second calls return cached
            SmbPipeInputStream in1 = handle.getInput();
            SmbPipeInputStream in2 = handle.getInput();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/IoTestCase.java

      private static void copy(URL url, File file) throws IOException {
        InputStream in = url.openStream();
        try {
          OutputStream out = new FileOutputStream(file);
          try {
            byte[] buf = new byte[4096];
            for (int read = in.read(buf); read != -1; read = in.read(buf)) {
              out.write(buf, 0, read);
            }
          } finally {
            out.close();
          }
        } finally {
          in.close();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

        private static final int FILE_NOTIFY_CHANGE_ALL = 0x00000FFF;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getNotifyBufferSize()).thenReturn(4096);
            when(mockConfig.getTransactionBufferSize()).thenReturn(65535);
        }
    
        @Test
        @DisplayName("Test constructor initialization with basic parameters")
        void testConstructorBasic() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

         */
        protected FileUtil() {
        }
    
        /** The encoding name for UTF-8. */
        private static final String UTF8 = "UTF-8";
    
        /** Default Buffer Size */
        protected static final int DEFAULT_BUF_SIZE = 4096; // 4k
    
        /** Max Buffer Size */
        protected static final int MAX_BUF_SIZE = 10 * 1024 * 1024; // 10m
    
        /**
         * Returns the canonical path string for this abstract pathname.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(handle.getPipe()).thenReturn(pipe);
            // init(th) behavior inside SmbFileInputStream constructor
            when(tree.isSMB2()).thenReturn(smb2);
            when(tree.getReceiveBufferSize()).thenReturn(4096);
            when(tree.getMaximumBufferSize()).thenReturn(65535);
            when(tree.hasCapability(anyInt())).thenReturn(false);
            return new SmbPipeInputStream(handle, tree);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            SMBUtil.writeInt8(500000, buffer, 28); // Available allocation units
            SMBUtil.writeInt4(512, buffer, 36); // Sectors per unit
            SMBUtil.writeInt4(4096, buffer, 40); // Bytes per sector
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getInfo());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
Back to top