- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 218 for arrays (0.26 sec)
-
cmd/object-api-utils.go
} } // newS2CompressReader will read data from r, compress it and return the compressed data as a Reader. // Use Close to ensure resources are released on incomplete streams. // // input 'on' is always recommended such that this function works // properly, because we do not wish to create an object even if // client closed the stream prematurely.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 11 11:55:34 GMT 2024 - 35.6K bytes - Viewed (1) -
cmd/test-utils_test.go
// special value -1 means no explicit seeding. if seed != -1 { rand.Seed(seed) } return rand.Intn(max-min) + min } // Randomizes the order of bytes in the byte array // using Knuth Fisher-Yates shuffle algorithm. func randomizeBytes(s []byte, seed int64) []byte { // special value -1 means no explicit seeding. if seed != -1 { rand.Seed(seed) } n := len(s)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 17:26:51 GMT 2024 - 76.2K bytes - Viewed (0) -
cmd/site-replication.go
// This is needed as there is no add-rule function in the server // yet. // Though we do not check if the rule already exists, this is // not a problem as we are always using the same replication // rule ID - if the rule already exists, it is just replaced. replicationConfigS, _, err := globalBucketMetadataSys.GetReplicationConfig(ctx, bucket) if err != nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 184.2K bytes - Viewed (1) -
src/bytes/bytes_test.go
cs := "0123456789abcdef" for k := 1; k <= 4096; k <<= 4 { for j := 1; j <= 16; j <<= 1 { b.Run(fmt.Sprintf("%d:%d", k, j), func(b *testing.B) { x := Repeat([]byte(cs[:j]), k) // Always matches set for i := 0; i < b.N; i++ { Trim(x[:k], cs[:j]) } }) } } } func BenchmarkTrimByte(b *testing.B) { x := []byte(" the quick brown fox ")
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
tests/create_test.go
} }) t.Run("Array", func(t *testing.T) { pets := [...]Pet{{ Name: "PolymorphicHasOne-Array-1", Toy: Toy{Name: "Toy-PolymorphicHasOne-Array-1"}, }, { Name: "PolymorphicHasOne-Array-2", Toy: Toy{Name: "Toy-PolymorphicHasOne-Array-2"}, }, { Name: "PolymorphicHasOne-Array-3", Toy: Toy{Name: "Toy-PolymorphicHasOne-Array-3"}, }}
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Mar 19 03:50:28 GMT 2024 - 26.4K bytes - Viewed (0) -
scan.go
var val interface{} values[idx] = &val } } } } switch reflectValue.Kind() { case reflect.Slice, reflect.Array: var ( elem reflect.Value isArrayKind = reflectValue.Kind() == reflect.Array ) if !update || reflectValue.Len() == 0 { update = false if isArrayKind { db.Statement.ReflectValue.Set(reflect.Zero(reflectValue.Type()))
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Apr 26 09:53:11 GMT 2024 - 9.8K bytes - Viewed (0) -
cmd/batchjobmetric_string.go
// Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[batchJobMetricReplication-0] _ = x[batchJobMetricKeyRotation-1] _ = x[batchJobMetricExpire-2] }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Dec 02 10:51:33 GMT 2023 - 797 bytes - Viewed (0) -
cmd/rebalstatus_string.go
// Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[rebalNone-0] _ = x[rebalStarted-1] _ = x[rebalCompleted-2] _ = x[rebalStopped-3] _ = x[rebalFailed-4] }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Oct 25 19:36:57 GMT 2022 - 795 bytes - Viewed (0) -
cmd/authtype_string.go
// Code generated by "stringer -type=authType -trimprefix=authType auth-handler.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[authTypeUnknown-0] _ = x[authTypeAnonymous-1] _ = x[authTypePresigned-2] _ = x[authTypePresignedV2-3]
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 06 02:53:12 GMT 2023 - 1.1K bytes - Viewed (0) -
cmd/stserrorcode_string.go
// Code generated by "stringer -type=STSErrorCode -trimprefix=Err sts-errors.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[ErrSTSNone-0] _ = x[ErrSTSAccessDenied-1] _ = x[ErrSTSMissingParameter-2] _ = x[ErrSTSInvalidParameterValue-3]
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Aug 03 20:24:25 GMT 2023 - 1.4K bytes - Viewed (0)