Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,714 for writeFn (0.05 sec)

  1. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        }
    
        @Test
        @DisplayName("writeHeaderWireFormat should write correct header")
        void testWriteHeaderWireFormat() {
            packet.type = SessionServicePacket.SESSION_REQUEST;
            packet.length = 0x1234;
    
            byte[] dst = new byte[10];
            int written = packet.writeHeaderWireFormat(dst, 0);
    
            assertEquals(4, written);
            assertEquals((byte) SessionServicePacket.SESSION_REQUEST, dst[0]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.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
    - 20.5K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    		defer xioutil.ODirectPoolLarge.Put(bufp)
    	}
    
    	var written int64
    	if odirectEnabled {
    		written, err = xioutil.CopyAligned(diskHealthWriter(ctx, w), r, *bufp, fileSize, w)
    	} else {
    		written, err = io.CopyBuffer(diskHealthWriter(ctx, w), r, *bufp)
    	}
    	if err != nil {
    		w.Close()
    		return err
    	}
    
    	if written < fileSize && fileSize >= 0 {
    		if truncate {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jun 13 11:33:47 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

         * @return The action role.
         */
        protected abstract String getActionRole();
    
        /**
         * Writes data to the specified file path.
         *
         * @param path the file path to write to
         * @param data the data to write
         */
        protected void write(final String path, final byte[] data) {
            LdiFileUtil.write(path, data);
        }
    
        /**
         * Gets the servlet context.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                bytes = bytes,
              )
            }
          }
    
          override fun toDer(
            writer: DerWriter,
            value: AnyValue,
          ) {
            writer.write("ANY", value.tagClass, value.tag) {
              writer.writeOctetString(value.bytes)
              writer.constructed = value.constructed
            }
          }
        }
    
      internal fun parseGeneralizedTime(string: String): Long {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/bytes/reader_test.go

    	{"ReadByte", func(r *Reader) { r.ReadByte() }},
    	{"UnreadRune", func(r *Reader) { r.UnreadRune() }},
    	{"Seek", func(r *Reader) { r.Seek(0, io.SeekCurrent) }},
    	{"WriteTo", func(r *Reader) { r.WriteTo(&Buffer{}) }},
    }
    
    func TestUnreadRuneError(t *testing.T) {
    	for _, tt := range UnreadRuneErrorTests {
    		reader := NewReader([]byte("0123456789"))
    		if _, _, err := reader.ReadRune(); err != nil {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  7. api/go1.22.txt

    pkg math/rand/v2, type Source interface { Uint64 } #61716
    pkg math/rand/v2, type Source interface, Uint64() uint64 #61716
    pkg math/rand/v2, type Zipf struct #61716
    pkg net, method (*TCPConn) WriteTo(io.Writer) (int64, error) #58808
    pkg net/http, func FileServerFS(fs.FS) Handler #51971
    pkg net/http, func NewFileTransportFS(fs.FS) RoundTripper #51971
    pkg net/http, func ServeFileFS(ResponseWriter, *Request, fs.FS, string) #51971
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            // When
            int result = smbComRename.writeParameterWordsWireFormat(dst, dstIndex);
    
            // Then
            assertEquals(2, result);
    
            // Verify that search attributes are written correctly
            int expectedAttributes = SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM | SmbConstants.ATTR_DIRECTORY;
            assertEquals((byte) (expectedAttributes & 0xFF), dst[dstIndex]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/BadWordService.java

         * Exports bad words to a CSV file.
         * @param writer The writer for the CSV output.
         */
        public void exportCsv(final Writer writer) {
            final CsvConfig cfg = new CsvConfig(',', '"', '"');
            cfg.setEscapeDisabled(false);
            cfg.setQuoteDisabled(false);
            @SuppressWarnings("resource")
            final CsvWriter csvWriter = new CsvWriter(writer, cfg);
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // Decode to new instance (decode reads 36 bytes, encode writes 40)
            FileBasicInfo decoded = new FileBasicInfo();
            int decodedBytes = decoded.decode(buffer, 0, 36);
    
            // Verify encoding/decoding
            assertEquals(40, encodedBytes); // encode writes 40 bytes (includes padding)
            assertEquals(36, decodedBytes); // decode reads 36 bytes (no padding)
    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