Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 1,395 for 2024 (0.02 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java

            return FetchSourcePhase.objectToBytes(value, XContentType.JSON, Math.min(1024, lookup.internalSourceRef().length()));
        }
    
        @Benchmark
        public BytesReference filterXContentOnParser() throws IOException {
            BytesStreamOutput streamOutput = new BytesStreamOutput(Math.min(1024, sourceBytes.length()));
            XContentBuilder builder = new XContentBuilder(XContentType.JSON.xContent(), streamOutput);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 17:34:14 GMT 2021
    - 5.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        @Test
        @DisplayName("Should set and get original message size")
        void testOriginalMessageSize() {
            // Given
            int messageSize = 1024;
    
            // When
            transformHeader.setOriginalMessageSize(messageSize);
    
            // Then
            assertEquals(messageSize, transformHeader.getOriginalMessageSize());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java

            transaction = new TestSmbComTransaction();
            transaction.command = ServerMessageBlock.SMB_COM_TRANSACTION;
            transaction.name = "\\PIPE\\test";
            transaction.txn_buf = new byte[1024];
            transaction.maxBufferSize = 1024;
        }
    
        @Test
        @DisplayName("Test reset() method resets transaction state")
        void testReset() {
            // Modify state
            transaction.nextElement();
    
            // Reset
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. ci/devinfra/docker/windows2022/Dockerfile

        Remove-Item .\7z.msi;
    
    # Download the Visual Studio 2022 Installer.
    RUN (New-Object Net.WebClient).DownloadFile('https://aka.ms/vs/17/release/vs_community.exe', 'C:\TEMP\vs_community.exe');
    # Install Visual Studio 2022 Build Tools + Compiler
    SHELL ["cmd", "/S", "/C"]
    # Packages, and component versions, can be found here:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Mar 04 19:50:57 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  5. .github/pull_request_template.md

    To make clear that you license your contribution under
    the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
    you have to acknowledge this by using the following check-box.
    
    - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Apr 01 17:30:11 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

                byte[] buffer1 = new byte[1024];
                int bytesRead1 = stream1.read(buffer1);
                assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8"));
            }
    
            // Second read - should work independently
            try (InputStream stream2 = cache.getInputStream()) {
                byte[] buffer2 = new byte[1024];
                int bytesRead2 = stream2.read(buffer2);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            }
    
            @Test
            @DisplayName("Test encode without signature")
            void testEncodeWithoutSignature() {
                byte[] buffer = new byte[1024];
    
                int length = testBlock.encode(buffer, 0);
    
                assertTrue(length > 0);
                assertEquals(length, testBlock.getLength());
                // SMB_HEADER is {0xFF, 'S', 'M', 'B'}
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            long sampleTimeMillis = 1672531200000L; // Represents a specific date in milliseconds
            ServerMessageBlock.writeUTime(sampleTimeMillis, buffer, 2);
            // File Size: 1024 bytes
            ServerMessageBlock.writeInt4(1024, buffer, 6);
    
            response.wordCount = 10; // Must be non-zero to read
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

        }
    
        private String getStatus(long complete, long total) {
            if (total >= 1024) {
                return toKB(complete) + "/" + toKB(total) + " KB ";
            } else if (total >= 0) {
                return complete + "/" + total + " B ";
            } else if (complete >= 1024) {
                return toKB(complete) + " KB ";
            } else {
                return complete + " B ";
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  10. internal/ringbuffer/README.md

    [![wikipedia](Circular_Buffer_Animation.gif)](https://github.com/smallnest/ringbuffer)
    
    # Usage
    
    ```go
    package main
    
    import (
    	"fmt"
    
    	"github.com/smallnest/ringbuffer"
    )
    
    func main() {
    	rb := ringbuffer.New(1024)
    
    	// write
    	rb.Write([]byte("abcd"))
    	fmt.Println(rb.Length())
    	fmt.Println(rb.Free())
    
    	// read
    	buf := make([]byte, 4)
    	rb.Read(buf)
    	fmt.Println(string(buf))
    }
    ```
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 15 00:11:04 GMT 2024
    - 2.1K bytes
    - Click Count (0)
Back to Top