Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for AsSlice (0.32 sec)

  1. src/bytes/bytes.go

    // Fields interprets s as a sequence of UTF-8-encoded code points.
    // It splits the slice s around each instance of one or more consecutive white space
    // characters, as defined by [unicode.IsSpace], returning a slice of subslices of s or an
    // empty slice if s contains only white space. Every element of the returned slice is
    // non-empty. Unlike [Split], leading and trailing runs of white space characters
    // are discarded.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils.go

    }
    
    // shuffleCheckParts - shuffle CheckParts slice depending on the
    // erasure distribution.
    func shuffleCheckParts(parts []int, distribution []int) []int {
    	return shuffleWithDist[int](parts, distribution)
    }
    
    // shuffleDisks - shuffle input disks slice depending on the
    // erasure distribution. Return shuffled slice of disks with
    // their expected distribution.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/bytes/iter.go

    // but without constructing a new slice containing the subslices.
    // It returns a single-use iterator.
    func SplitSeq(s, sep []byte) iter.Seq[[]byte] {
    	return splitSeq(s, sep, 0)
    }
    
    // SplitAfterSeq returns an iterator over subslices of s split after each instance of sep.
    // The iterator yields the same subslices that would be returned by [SplitAfter](s, sep),
    // but without constructing a new slice containing the subslices.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. tests/create_test.go

    		CheckPet(t, pet2, pet)
    	})
    
    	t.Run("Slice", func(t *testing.T) {
    		pets := []Pet{{
    			Name: "PolymorphicHasOne-Slice-1",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Slice-1"},
    		}, {
    			Name: "PolymorphicHasOne-Slice-2",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Slice-2"},
    		}, {
    			Name: "PolymorphicHasOne-Slice-3",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Slice-3"},
    		}}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/EncodableTest.java

                    Arguments.of(makeSeq(8), 0, 8, 0), // full copy at index 0
                    Arguments.of(makeSeq(10), 2, 5, 3), // middle slice, non-zero dst index
                    Arguments.of(makeSeq(4), 4, 0, 0), // zero-length slice at end
                    Arguments.of(makeSeq(16), 7, 3, 0), // small slice from middle
                    Arguments.of(makeSeq(16), 0, 0, 5) // zero-length with non-zero dst index
            );
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. tests/update_test.go

    	sort.Slice(result.Pets, func(i, j int) bool {
    		return result.Pets[i].ID < result.Pets[j].ID
    	})
    	sort.Slice(result.Team, func(i, j int) bool {
    		return result.Team[i].ID < result.Team[j].ID
    	})
    	sort.Slice(result.Friends, func(i, j int) bool {
    		return result.Friends[i].ID < result.Friends[j].ID
    	})
    	sort.Slice(result2.Pets, func(i, j int) bool {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  7. schema/schema.go

    	}
    	return fmt.Sprintf("%s.%s", schema.ModelType.PkgPath(), schema.ModelType.Name())
    }
    
    func (schema *Schema) MakeSlice() reflect.Value {
    	slice := reflect.MakeSlice(reflect.SliceOf(reflect.PointerTo(schema.ModelType)), 0, 20)
    	results := reflect.New(slice.Type())
    	results.Elem().Set(slice)
    
    	return results
    }
    
    func (schema *Schema) LookUpField(name string) *Field {
    	if field, ok := schema.FieldsByDBName[name]; ok {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 19 06:35:49 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. cmd/admin-handlers-idp-openid.go

    	}
    
    	// Convert map to slice and sort
    	resp := make([]madmin.ListAccessKeysOpenIDResp, 0, len(cfgToUsersMap))
    	for cfgName, usersMap := range cfgToUsersMap {
    		users := make([]madmin.OpenIDUserAccessKeys, 0, len(usersMap))
    		for _, user := range usersMap {
    			users = append(users, user)
    		}
    		sort.Slice(users, func(i, j int) bool {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:38:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. statement.go

    				subdb.callbacks.Query().Execute(subdb)
    			}
    
    			writer.WriteString(subdb.Statement.SQL.String())
    			stmt.Vars = subdb.Statement.Vars
    		default:
    			switch rv := reflect.ValueOf(v); rv.Kind() {
    			case reflect.Slice, reflect.Array:
    				if rv.Len() == 0 {
    					writer.WriteString("(NULL)")
    				} else if rv.Type().Elem() == reflect.TypeOf(uint8(0)) {
    					stmt.Vars = append(stmt.Vars, v)
    					stmt.DB.Dialector.BindVarTo(writer, stmt, v)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/common/BuildScanUtils.kt

    private fun Stage.getBuildScanCustomValues(): List<String> =
        StageName
            .values()
            .slice(this.stageName.ordinal until StageName.READY_FOR_RELEASE.ordinal + 1)
            .map { it.uuid }
    
    fun Stage.getBuildScanCustomValueParam(testCoverage: TestCoverage? = null): String {
        val customValues =
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Tue Jun 10 05:45:46 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top