Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,069 for nBytes (0.1 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                buffer[bufferIndex + 2] = expectedOplockLevel;
    
                // Write reserved field (4 bytes at offset 4)
                bufferIndex += 4;
    
                // Write Reserved2 (4 bytes)
                bufferIndex += 4;
    
                // Write file ID (16 bytes)
                byte[] expectedFileId = createTestData(16);
                System.arraycopy(expectedFileId, 0, buffer, bufferIndex, 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    	if err = objectKey.Unseal(extKey, sealedKey, crypto.S3.String(), bucket, ""); err != nil {
    		return nil, err
    	}
    
    	outbuf := bytes.NewBuffer(nil)
    	_, err = sio.Decrypt(outbuf, bytes.NewBuffer(input), sio.Config{Key: objectKey[:], MinVersion: sio.Version20})
    	return outbuf.Bytes(), err
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

            byte[] dst = new byte[expectedBytes.length];
            int dstIndex = 0;
    
            // Execute the method to write bytes
            int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex);
    
            // Verify the number of bytes written
            assertEquals(expectedBytes.length, bytesWritten, "The number of bytes written should match the length of the dialect string.");
            // Verify the content of the destination array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test readSecurityBuffer
            byte[] data = new byte[20];
            byte[] content = "Hello".getBytes();
    
            // Simulate a security buffer structure: length (2 bytes), length (2 bytes), offset (4 bytes)
            // Length = 5, Offset = 8
            ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
            buffer.putShort(0, (short) content.length); // Length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. cmd/xl-storage_windows_test.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"testing"
    )
    
    // Test if various paths work as expected when converted to UNC form
    func TestUNCPaths(t *testing.T) {
    	testCases := []struct {
    		objName string
    		pass    bool
    	}{
    		{"/abcdef", true},
    		{"/a/b/c/d/e/f/g", true},
    		{string(bytes.Repeat([]byte("界"), 85)), true},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Base64.java

         * Base-64 encodes the supplied block of data.  Line wrapping is not
         * applied on output.
         *
         * @param bytes The block of data that is to be Base-64 encoded.
         * @return A <code>String</code> containing the encoded data.
         */
        public static String encode(final byte[] bytes) {
            int length = bytes.length;
            if (length == 0) {
                return "";
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

            int start = bufferIndex;
    
            if (len < 52) {
                throw new SMBProtocolDecodingException("Lease V2 context data too short: " + len);
            }
    
            // Read lease V2 data (52 bytes)
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            bufferIndex += 16;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. cmd/mrf_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalPartialOperation(t *testing.T) {
    	v := PartialOperation{}
    	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: Tue Aug 13 22:26:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. cmd/metacache-set_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshallistPathOptions(t *testing.T) {
    	v := listPathOptions{}
    	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
    - 2.4K bytes
    - Viewed (0)
  10. cmd/metacache-walk_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalWalkDirOptions(t *testing.T) {
    	v := WalkDirOptions{}
    	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: Tue Nov 21 01:09:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top