Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,715 for writeFn (0.04 sec)

  1. guava/src/com/google/common/util/concurrent/SneakyThrows.java

       * calling code written in Kotlin).) Typically, we want to let a {@link Throwable} from such a
       * method propagate untouched, just as we'd typically let it do for a non-reflective call.
       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertFalse(source.wasStreamClosed());
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertTrue(source.wasStreamClosed());
        assertEquals(STRING, writer.toString());
      }
    
      public void testLines() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

            }
        }
    
        /**
         * Exports elevate words to a CSV file.
         * CSV format: SuggestWord, Reading, Permissions, Labels, Boost
         *
         * @param writer the Writer to output CSV data to
         */
        public void exportCsv(final Writer writer) {
            final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper();
            final CsvConfig cfg = new CsvConfig(',', '"', '"');
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  4. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

                            processingEnv.getFiler().createResource(StandardLocation.CLASS_OUTPUT, "", path);
                    try (Writer writer = outputFile.openWriter()) {
                        writer.write(newContent);
                    }
                } catch (IOException e) {
                    logError("Failed to write to file", e);
                    throw e; // Re-throw to ensure the compilation fails
                }
            } else {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        @Test
        @DisplayName("writeBytesWireFormat should write correct structure")
        void testWriteBytesWireFormat() {
            byte[] buffer = new byte[256];
            int offset = 64; // Start at offset to test proper indexing
    
            int written = request.writeBytesWireFormat(buffer, offset);
    
            // Verify bytes written
            assertEquals(24, written);
    
            // Verify structure size (should be 24)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, 8, 24));
    
                // Verify total bytes written (structure + lock data)
                assertEquals(24 + 24, bytesWritten); // 24 for structure, 24 for lock
            }
    
            @Test
            @DisplayName("Should write request structure correctly with multiple locks")
            void testWriteBytesWireFormatMultipleLocks() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. cmd/xl-storage_noatime_notsupported.go

    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// No special option for reads on windows
    	readMode = os.O_RDONLY
    
    	// Write with sync no buffering only used only for `xl.meta` writes
    	writeMode = os.O_SYNC
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jul 23 16:36:24 UTC 2024
    - 1001 bytes
    - Viewed (0)
  8. cmd/bitrot-whole.go

    }
    
    func (b *wholeBitrotWriter) Write(p []byte) (int, error) {
    	err := b.disk.AppendFile(context.TODO(), b.volume, b.filePath, p)
    	if err != nil {
    		return 0, err
    	}
    	_, err = b.Hash.Write(p)
    	if err != nil {
    		return 0, err
    	}
    	return len(p), nil
    }
    
    func (b *wholeBitrotWriter) Close() error {
    	return nil
    }
    
    // Returns whole-file bitrot writer.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

        /**
         * Write data to RDMA connection
         *
         * @param buffer buffer containing data to write
         * @param remoteAddress remote memory address for RDMA write
         * @param remoteKey remote memory key
         * @param length number of bytes to write
         * @return number of bytes actually written
         * @throws IOException if write operation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

         */
        public Smb2RdmaTransform getTransform() {
            return transform;
        }
    
        /**
         * Encode to byte array for SMB2 READ/WRITE channel info
         *
         * @param dst destination buffer
         * @param dstIndex starting index
         * @return number of bytes written
         */
        public int encode(byte[] dst, int dstIndex) {
            return transform.encode(dst, dstIndex);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top