- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,060 for doDecode (0.14 sec)
-
pkg/webhooks/util/util.go
return nil, &ConfigError{err, "could not verify caBundle"} } return caBundle, nil } func VerifyCABundle(caBundle []byte) error { block, _ := pem.Decode(caBundle) if block == nil { return errors.New("could not decode pem") } if block.Type != "CERTIFICATE" { return fmt.Errorf("cert contains wrong pem type: %q", block.Type) } if _, err := x509.ParseCertificate(block.Bytes); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 17:33:33 UTC 2022 - 1.5K bytes - Viewed (0) -
security/pkg/util/jwtutil.go
} // Decode the second part. claimBytes, err := DecodeJwtPart(parts[1]) if err != nil { return nil, err } dec := json.NewDecoder(bytes.NewBuffer(claimBytes)) claims := make(map[string]any) if err := dec.Decode(&claims); err != nil { return nil, fmt.Errorf("failed to decode the JWT claims") } return claims, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 3.2K bytes - Viewed (0) -
src/math/big/ratmarsh_test.go
dec := gob.NewDecoder(buf) var in = make([]*Rat, 1) err := enc.Encode(&in) if err != nil { t.Errorf("gob encode failed: %q", err) } var out []*Rat err = dec.Decode(&out) if err != nil { t.Fatalf("gob decode failed: %q", err) } if len(out) != 1 { t.Fatalf("wrong len; want 1 got %d", len(out)) } var zero Rat if out[0].Cmp(&zero) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:20:16 UTC 2022 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/negotiate.go
} return fmt.Sprintf("no serializers registered for %s", e.ContentType) } type clientNegotiator struct { serializer NegotiatedSerializer encode, decode GroupVersioner } func (n *clientNegotiator) Encoder(contentType string, params map[string]string) (Encoder, error) { // TODO: `pretty=1` is handled in NegotiateOutputMediaType, consider moving it to this method
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 29 19:55:06 UTC 2020 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/api/apiserverinternal/v1alpha1/types_swagger_doc_generated.go
"": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "apiServerID": "The ID of the reporting API server.", "encodingVersion": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 22:40:54 UTC 2023 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
} /* * Decode floating point numbers */ public static float dec_floatle ( byte[] src, int si ) { return Float.intBitsToFloat(dec_uint32le(src, si)); } public static float dec_floatbe ( byte[] src, int si ) { return Float.intBitsToFloat(dec_uint32be(src, si)); } /* * Encode and decode doubles */
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
public int type; public ACE[] aces; public SecurityDescriptor() { } public SecurityDescriptor(byte[] buffer, int bufferIndex, int len) throws IOException { this.decode(buffer, bufferIndex, len); } public int decode(byte[] buffer, int bufferIndex, int len) throws IOException { int start = bufferIndex; bufferIndex++; // revision bufferIndex++;
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 3.3K bytes - Viewed (0) -
src/cmd/internal/objfile/disasm.go
} } fmt.Fprintf(tw, "\t%s\t\n", text) }) tw.Flush() } bw.Flush() } // Decode disassembles the text segment range [start, end), calling f for each instruction. func (d *Disasm) Decode(start, end uint64, relocs []Reloc, gnuAsm bool, f func(pc, size uint64, file string, line int, text string)) { if start < d.textStart { start = d.textStart }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 10.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java
*/ public byte[] getResumeKey () { return this.resumeKey; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException { int start = bufferIndex; if ( len < 24 ) {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.8K bytes - Viewed (0) -
src/go/token/serialize_test.go
return gob.NewEncoder(&buf).Encode(x) } if err := p.Write(encode); err != nil { t.Errorf("writing fileset failed: %s", err) return } q := NewFileSet() decode := func(x any) error { return gob.NewDecoder(&buf).Decode(x) } if err := q.Read(decode); err != nil { t.Errorf("reading fileset failed: %s", err) return } if err := equal(p, q); err != nil { t.Errorf("filesets not identical: %s", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 17 15:02:55 UTC 2022 - 2.5K bytes - Viewed (0)