Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 293 for 1024 (0.4 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

         * Helper method to create a buffer with a single notification
         */
        private byte[] createSingleNotificationBuffer(String fileName, int action) throws Exception {
            ByteBuffer buffer = ByteBuffer.allocate(1024);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
    
            byte[] fileNameBytes = fileName.getBytes("UTF-16LE");
    
            buffer.putInt(0); // nextEntryOffset (0 = last entry)
            buffer.putInt(action);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader.go

    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    	if skip > 0 {
    		n, err := io.ReadFull(r.buf, dst)
    		if err != nil && err != io.ErrUnexpectedEOF {
    			// If an EOF happens after reading some but not all the bytes,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/TestLocking.java

        long ltime = 0L;
    
        @Override
        public void run() {
            try {
                final SmbFile f = new SmbFile(url);
                final SmbFile d = new SmbFile(f.getParent());
                final byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
                        ltime = System.currentTimeMillis();
                        wait();
                    }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Allocation Size (8 bytes)
                SMBUtil.writeInt8(4096, buffer, bufferIndex + 40);
                // End of File (8 bytes)
                SMBUtil.writeInt8(1024, buffer, bufferIndex + 48);
                // File Attributes (4 bytes)
                SMBUtil.writeInt4(0x20, buffer, bufferIndex + 56); // FILE_ATTRIBUTE_ARCHIVE
    
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/http/NetworkExplorer.java

        private String defaultDomain;
    
        @Override
        public void init() throws ServletException {
            InputStream is;
            final StringBuilder sb = new StringBuilder();
            final byte[] buf = new byte[1024];
            int n, level;
            String name;
    
            Config.setProperty("jcifs.smb1.smb.client.soTimeout", "600000");
            Config.setProperty("jcifs.smb1.smb.client.attrExpirationPeriod", "300000");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            SMBUtil.writeInt2(1024, buffer2, offset); // bytesPerSect
    
            smbInfoAllocation.decode(buffer2, 0, buffer2.length);
    
            // Verify values are updated
            assertNotEquals(firstCapacity, smbInfoAllocation.getCapacity());
            assertNotEquals(firstFree, smbInfoAllocation.getFree());
    
            // Verify new calculations
            assertEquals(2000L * 8 * 1024, smbInfoAllocation.getCapacity());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        @BeforeEach
        public void setUp() {
            compressionService = new DefaultCompressionService();
    
            // Create test data with patterns that should compress well
            testData = generateTestData(1024);
            largeTestData = generateTestData(8192);
        }
    
        @Test
        @DisplayName("Test supported algorithms")
        public void testSupportedAlgorithms() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. internal/bpool/bpool_test.go

    package bpool
    
    import (
    	"testing"
    )
    
    // Tests - bytePool functionality.
    func TestBytePool(t *testing.T) {
    	size := uint64(4)
    	width := 1024
    	capWidth := 2048
    
    	bp := NewBytePoolCap(size, width, capWidth)
    
    	// Check the width
    	if bp.Width() != width {
    		t.Fatalf("bytepool width invalid: got %v want %v", bp.Width(), width)
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

        }
    
        public void test_contentLengthGetterSetter() {
            // Test content length getter/setter
            ResponseData data = new ResponseData();
    
            data.setContentLength(1024L);
            assertEquals(1024L, data.getContentLength());
    
            data.setContentLength(0L);
            assertEquals(0L, data.getContentLength());
        }
    
        public void test_mimeTypeGetterSetter() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putInt(1024);
    
                // When
                fileFsFullSizeInfo.decode(buffer.array(), 0, 32);
    
                // Then - multiple calls should return same values
                assertEquals(2000L * 4 * 1024, fileFsFullSizeInfo.getCapacity());
                assertEquals(2000L * 4 * 1024, fileFsFullSizeInfo.getCapacity());
                assertEquals(1000L * 4 * 1024, fileFsFullSizeInfo.getFree());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
Back to top