Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,114 for 0bytes (0.53 sec)

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

        }
    
        @Test
        void readTrailerWireFormatShouldReadSixBytesSuccessfully() throws IOException {
            // Test successful reading of 6 bytes from the input stream.
            // The content of these bytes is not critical for this test, only that 6 bytes are read.
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_test.go

    		MountPath: "/tmp/drive1",
    		ID:        "uuid",
    		Error:     "",
    	}
    
    	var buf bytes.Buffer
    	gob.NewEncoder(&buf).Encode(v)
    	encoded := buf.Bytes()
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    	b.ReportAllocs()
    
    	for b.Loop() {
    		dec := gob.NewDecoder(bytes.NewBuffer(encoded))
    		err := dec.Decode(&v)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

                // For CCM cipher, pad nonce to 16 bytes with zeros
                System.arraycopy(nonce, 0, this.nonce, 0, 12);
                // Last 4 bytes remain zero-initialized
            } else if (nonce.length == 16) {
                // For GCM cipher, use full 16-byte nonce
                System.arraycopy(nonce, 0, this.nonce, 0, 16);
            } else {
                throw new IllegalArgumentException("Nonce must be 12 bytes (CCM) or 16 bytes (GCM)");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. cmd/batch-handlers_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBatchJobPrefix(t *testing.T) {
    	v := BatchJobPrefix{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. cmd/local-locker_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshallocalLockMap(t *testing.T) {
    	v := localLockMap{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. cmd/copy-part-range_test.go

    		}
    	}
    
    	// Test invalid range strings.
    	invalidRangeStrings := []string{
    		"bytes=8",
    		"bytes=5-2",
    		"bytes=+2-5",
    		"bytes=2-+5",
    		"bytes=2--5",
    		"bytes=-",
    		"2-5",
    		"bytes = 2-5",
    		"bytes=2 - 5",
    		"bytes=0-0,-1",
    		"bytes=2-5 ",
    		"bytes=-1",
    		"bytes=1-",
    	}
    	for _, rangeString := range invalidRangeStrings {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
        @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset")
        void testReadParameterWords(int expectedInt, byte[] bytes) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

         *
         * @param bytes number of bytes written
         * @param durationNanos operation duration in nanoseconds
         */
        public void recordRdmaWrite(int bytes, long durationNanos) {
            rdmaWrites.incrementAndGet();
            bytesTransferred.addAndGet(bytes);
            totalWriteTime.addAndGet(durationNanos);
        }
    
        /**
         * Record an RDMA send operation
         *
         * @param bytes number of bytes sent
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. docs/smb3-features/01-smb3-lease-design.md

            
            // StructureSize (2 bytes)
            structureSize = readInt2(buffer, offset);
            offset += 2;
            
            // Reserved (2 bytes)
            offset += 2;
            
            // Flags (4 bytes)
            flags = readInt4(buffer, offset);
            offset += 4;
            
            // LeaseKey (16 bytes)
            byte[] keyBytes = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        }
    
        /**
         * Add bytes sent
         *
         * @param bytes number of bytes
         */
        public void addBytesSent(long bytes) {
            bytesSent.addAndGet(bytes);
        }
    
        /**
         * Add bytes received
         *
         * @param bytes number of bytes
         */
        public void addBytesReceived(long bytes) {
            bytesReceived.addAndGet(bytes);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top