Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,107 for Len (0.02 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

            int start = bufferIndex;
    
            int len = readStringLength(buffer, bufferIndex, 32);
            try {
                this.service = new String(buffer, bufferIndex, len, "ASCII");
            }
            catch ( UnsupportedEncodingException uee ) {
                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
            /*
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  2. cmd/config-common.go

    	return err
    }
    
    func saveConfigWithOpts(ctx context.Context, store objectIO, configFile string, data []byte, opts ObjectOptions) error {
    	hashReader, err := hash.NewReader(ctx, bytes.NewReader(data), int64(len(data)), "", getSHA256Hash(data), int64(len(data)))
    	if err != nil {
    		return err
    	}
    
    	_, err = store.PutObject(ctx, minioMetaBucket, configFile, NewPutObjReader(hashReader), opts)
    	return err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            int len = str.length() + 1;
            if ( this.useUnicode ) {
                len = str.length() * 2 + 2;
                len = ( offset % 2 ) != 0 ? len + 1 : len;
            }
            return len;
        }
    
    
        protected int readStringLength ( byte[] src, int srcIndex, int max ) {
            int len = 0;
            while ( src[ srcIndex + len ] != (byte) 0x00 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  4. istioctl/pkg/checkinject/checkinject.go

      istioctl x check-inject -n test -l app=helloworld,version=v1
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 && labelPairs == "" || len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("check-inject requires only [<resource-type>/]<resource-name>[.<namespace>], or specify labels flag")
    			}
    			return nil
    		},
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/data-usage.go

    	if len(dataUsageInfo.BucketsUsage) == 0 {
    		dataUsageInfo.BucketsUsage = make(map[string]BucketUsageInfo, len(dataUsageInfo.BucketSizes))
    		for bucket, size := range dataUsageInfo.BucketSizes {
    			dataUsageInfo.BucketsUsage[bucket] = BucketUsageInfo{Size: size}
    		}
    	}
    
    	// For backward compatibility reasons, we need to add this code.
    	if len(dataUsageInfo.BucketSizes) == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. cmd/erasure_test.go

    	data := make([]byte, 256)
    	if _, err := io.ReadFull(rand.Reader, data); err != nil {
    		t.Fatalf("Failed to read random data: %v", err)
    	}
    	for i, test := range erasureEncodeDecodeTests {
    		buffer := make([]byte, len(data), 2*len(data))
    		copy(buffer, data)
    
    		erasure, err := NewErasure(context.Background(), test.dataBlocks, test.parityBlocks, blockSizeV2)
    		if err != nil {
    			t.Fatalf("Test %d: failed to create erasure: %v", i, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. cmd/erasure-encode_test.go

    		}
    		if err == nil {
    			if length := int64(len(data[test.offset:])); n != length {
    				t.Errorf("Test %d: invalid number of bytes written: got: #%d want #%d", i, n, length)
    			}
    			writers := make([]io.Writer, len(disks))
    			for i, disk := range disks {
    				if disk == nil {
    					continue
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. clause/order_by.go

    func (orderBy OrderBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(OrderBy); ok {
    		for i := len(orderBy.Columns) - 1; i >= 0; i-- {
    			if orderBy.Columns[i].Reorder {
    				orderBy.Columns = orderBy.Columns[i:]
    				clause.Expression = orderBy
    				return
    			}
    		}
    
    		copiedColumns := make([]OrderByColumn, len(v.Columns))
    		copy(copiedColumns, v.Columns)
    		orderBy.Columns = append(copiedColumns, orderBy.Columns...)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Nov 03 02:30:05 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

        }
        SmbComWriteAndX( int fid, long offset, int remaining,
                        byte[] b, int off, int len, ServerMessageBlock andx ) {
            super( andx );
            this.fid = fid;
            this.offset = offset;
            this.remaining = remaining;
            this.b = b;
            this.off = off;
            dataLength = len;
            command = SMB_COM_WRITE_ANDX;
        }
    
        void setParam( int fid, long offset, int remaining,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  10. cmd/bucket-policy.go

    			for _, gI := range grpsIs {
    				if g, ok := gI.(string); ok {
    					grps = append(grps, g)
    				}
    			}
    			if len(grps) > 0 {
    				args["groups"] = grps
    			}
    		}
    	}
    
    	// if not claim groups are available use the one with auth.Credentials
    	if _, ok := args["groups"]; !ok {
    		if len(groups) > 0 {
    			args["groups"] = groups
    		}
    	}
    
    	return args
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top