- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 68 for SLICE (0.04 sec)
-
security/pkg/pki/util/crypto.go
} cert, err := x509.ParseCertificate(cb.Bytes) if err != nil { return nil, fmt.Errorf("failed to parse X.509 certificate") } return cert, nil } // ParsePemEncodedCertificateChain constructs a slice of `x509.Certificate` and `rootCertBytes` // objects using the given a PEM-encoded certificate chain. func ParsePemEncodedCertificateChain(certBytes []byte) ([]*x509.Certificate, []byte, error) { var (
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/xl-storage-format-utils_test.go
return false } } return true } if !chkNumVersions(fivs.Versions) { t.Fatalf("Expected all versions to have the same NumVersions") } sort.Slice(versions, func(i, j int) bool { if versions[i].IsLatest { return true } if versions[j].IsLatest { return false } return versions[i].ModTime.After(versions[j].ModTime) })
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 22:18:44 UTC 2024 - 7.1K bytes - Viewed (0) -
cmd/metacache-bucket.go
if _, ok := remove[id]; ok { continue } remainCaches = append(remainCaches, cache) } if len(remainCaches) > metacacheMaxEntries { // Sort oldest last... sort.Slice(remainCaches, func(i, j int) bool { return remainCaches[i].lastHandout.Before(remainCaches[j].lastHandout) }) // Keep first metacacheMaxEntries... for _, cache := range remainCaches[metacacheMaxEntries:] {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.6K bytes - Viewed (0) -
src/math/big/bits_test.go
package big import ( "fmt" "slices" "testing" ) // A Bits value b represents a finite floating-point number x of the form // // x = 2**b[0] + 2**b[1] + ... 2**b[len(b)-1] // // The order of slice elements is not significant. Negative elements may be // used to form fractions. A Bits value is normalized if each b[i] occurs at // most once. For instance Bits{0, 0, 1} is not normalized but represents the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.1K bytes - Viewed (0) -
src/cmd/go/internal/bug/bug.go
fmt.Printf("%s %s: %v\n", path, strings.Join(args, " "), err) } return } fmt.Fprintf(w, "%s%s\n", prefix, bytes.TrimSpace(out)) } // firstLine returns the first line of a given byte slice. func firstLine(buf []byte) []byte { idx := bytes.IndexByte(buf, '\n') if idx > 0 { buf = buf[:idx] } return bytes.TrimSpace(buf) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td
Arg<TF_StrTensor, [{shape {N}. The names of the tensors to be restored. This is tensor name in the model.}]>:$tensor_names, Arg<TF_StrTensor, [{shape {N}. The slice specs of the tensors to be restored. Empty strings indicate that they are non-partitioned tensors.}]>:$shape_and_slices, // VarHandles for restored tensors. Variadic<TF_Tensor>:$var_handles,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 6.8K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher.go
var podIps []netip.Addr for _, configuredPodIPs := range addCmd.IPs { // net.ip is implicitly convertible to netip as slice ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP) // We ignore the mask of the IPNet - it's fine if the IPNet defines // a block grant of addresses, we just need one for checking routes.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 21:31:35 UTC 2024 - 6.7K bytes - Viewed (0) -
src/crypto/tls/key_schedule.go
// parsed from a field which has the same length limitation. As such, an // error here is likely to only be caused during development. // // NOTE: another reasonable approach here might be to return a // randomized slice if we encounter an error, which would break the // connection, but avoid panicking. This would perhaps be safer but // significantly more confusing to users. panic(fmt.Errorf("failed to construct HKDF label: %s", err)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 14:56:25 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/config/identity/ldap/config.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.1K bytes - Viewed (0) -
src/crypto/tls/ech.go
PublicName []byte Extensions []echExtension } var errMalformedECHConfig = errors.New("tls: malformed ECHConfigList") // parseECHConfigList parses a draft-ietf-tls-esni-18 ECHConfigList, returning a // slice of parsed ECHConfigs, in the same order they were parsed, or an error // if the list is malformed. func parseECHConfigList(data []byte) ([]echConfig, error) { s := cryptobyte.String(data) // Skip the length prefix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 7.4K bytes - Viewed (0)