Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,121 for rewrite (0.08 sec)

  1. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            cos.write(new byte[] { 0, 1, 2, 3, 4 });
            assertFalse(cos.done);
            assertTrue(cos.isInMemory());
            cos.close();
            assertFalse(cos.done);
        }
    
        @Test
        public void inFile() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 });
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

        if (this[i] == '"'.code.toByte()) {
          result.write(this, i)
          // Consume '"'.
          readByte()
          return result.readUtf8()
        }
    
        if (size == i + 1L) return null // Dangling escape.
        result.write(this, i)
        // Consume '\'.
        readByte()
        result.write(this, 1L) // The escaped character.
      }
    }
    
    /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. docs/smb3-features/01-smb3-lease-design.md

            
            writeInt4(buffer, offset + 12, dataOffset - offset);  // DataOffset
            
            // Write context name
            System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, getName().length());
            
            // Write lease data
            System.arraycopy(leaseKey.getKey(), 0, buffer, dataOffset, 16);  // LeaseKey
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle write at buffer boundary")
            void testWriteAtBufferBoundary() {
                request.setReadLength(1024);
    
                byte[] buffer = new byte[100];
    
                // Try to write at position that would exceed buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            request.setCompletionFilter(0);
    
            // When - first write
            byte[] buffer1 = new byte[512];
            request.writeBytesWireFormat(buffer1, 0);
    
            // Update values
            request.setNotifyFlags(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE);
            request.setCompletionFilter(0xFFF);
    
            // Second write
            byte[] buffer2 = new byte[512];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

             */
            public SynonymItem write(final SynonymItem oldItem) {
                try {
                    if (item == null || item.getId() != oldItem.getId() || !item.isUpdated()) {
                        writer.write(oldItem.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return oldItem;
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        public ByteSource createSource(byte[] bytes) throws IOException {
          checkNotNull(bytes);
          File file = createFile();
          OutputStream out = new FileOutputStream(file);
          try {
            out.write(bytes);
          } finally {
            out.close();
          }
          return Files.asByteSource(file);
        }
    
        @Override
        public byte[] getExpected(byte[] bytes) {
          return checkNotNull(bytes);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ACE.java

        /**
         * Permission to write file attributes
         */
        int FILE_WRITE_ATTRIBUTES = 0x00000100; // 9
        /**
         * Standard delete permission
         */
        int DELETE = 0x00010000; // 16
        /**
         * Permission to read the security descriptor
         */
        int READ_CONTROL = 0x00020000; // 17
        /**
         * Permission to write the discretionary access control list
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            String newContent = "New content\n";
    
            // Write initial content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(initialContent.getBytes("UTF-8"));
            }
    
            // Overwrite with new content
            try (OutputStream out = file.openOutputStream(false)) {
                out.write(newContent.getBytes("UTF-8"));
            }
    
            // Verify new content
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

            }
    
            @Test
            @DisplayName("Should write setup wire format")
            void testWriteSetupWireFormat() {
                byte[] buffer = new byte[100];
                int result = response.writeSetupWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should write parameters wire format")
            void testWriteParametersWireFormat() {
    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