Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for WriteBytes (0.65 sec)

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

                byte[] arr = new byte[10];
                assertEquals(0, response.writeParameterWordsWireFormat(arr, index));
            }
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat tests")
        class WriteBytes {
    
            @Test
            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.writeBytesWireFormat(null, 0));
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("writeBytes(): writes string bytes; writeChars(): 2x length")
        void write_stringVariants() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
    
            raf.writeBytes("hi");
            raf.writeChars("yo");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                    return Integer.valueOf(-1);
                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

        private void setupMockComponents() {
            try {
                // Register mock system properties
                File propFile = File.createTempFile("test", ".properties");
                org.codelibs.core.io.FileUtil.writeBytes(propFile.getAbsolutePath(), new byte[0]);
                propFile.deleteOnExit();
                DynamicProperties mockProperties = new DynamicProperties(propFile) {
                    @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

         *
         * @param pathname
         *            The path to the file.
         * @param bytes
         *            The byte array to write.
         */
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. cmd/mrf_gen.go

    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	// write "Versions"
    	err = en.Append(0xa8, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.Versions)
    	if err != nil {
    		err = msgp.WrapError(err, "Versions")
    		return
    	}
    	// write "SetIndex"
    	err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	if err != nil {
    		return
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

                    return 60000;
                }
            };
            ComponentUtil.register(fessConfig, "fessConfig");
    
            File propFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propFile.getAbsolutePath(), new byte[0]);
            propFile.deleteOnExit();
            systemProperties = new DynamicProperties(propFile);
            ComponentUtil.register(systemProperties, "systemProperties");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. cmd/metacache-stream.go

    		}
    		// Indicate EOS
    		err := w.mw.WriteBool(true)
    		if err != nil {
    			return err
    		}
    		err = w.mw.WriteString(o.name)
    		if err != nil {
    			return err
    		}
    		err = w.mw.WriteBytes(o.metadata)
    		if err != nil {
    			return err
    		}
    		if w.reuseBlocks || o.reusable {
    			metaDataPoolPut(o.metadata)
    		}
    	}
    
    	return nil
    }
    
    // stream entries to the output.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 07 15:37:12 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

        private File propertiesFile;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            propertiesFile = File.createTempFile("test", ".properties");
            FileUtil.writeBytes(propertiesFile.getAbsolutePath(), new byte[0]);
            propertiesFile.deleteOnExit();
            DynamicProperties systemProps = new DynamicProperties(propertiesFile);
            ComponentUtil.register(systemProps, "systemProperties");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "fess.version=98.76.5".getBytes());
            final File desginJspRootFile = File.createTempFile("jsp", "");
            desginJspRootFile.delete();
            desginJspRootFile.deleteOnExit();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
Back to top