Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SliceData (0.41 sec)

  1. src/bytes/bytes_test.go

    		}
    
    		if input != nil && clone == nil {
    			t.Errorf("Clone(%#v) return value should not be equal to nil slice.", input)
    		}
    
    		if cap(input) != 0 && unsafe.SliceData(input) == unsafe.SliceData(clone) {
    			t.Errorf("Clone(%q) return value should not reference inputs backing memory.", input)
    		}
    	}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    	n := 0
    	for i := range length {
    		n += len(ss[i])
    	}
    	b := make([]byte, 0, n)
    	for i := range length {
    		b = append(b, ss[i]...)
    	}
    	return unsafe.String(unsafe.SliceData(b), n)
    }
    
    // pathJoin - like path.Join() but retains trailing SlashSeparator of the last element
    func pathJoin(elem ...string) string {
    	sb := bytebufferpool.Get()
    	defer func() {
    		sb.Reset()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
Back to top