- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for rawbuffer (0.28 sec)
-
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/cmd/compile/internal/types2/stdlib_test.go
f, err := os.Open(filename) if err != nil { return "" } defer f.Close() // read at most 4KB var buf [4 << 10]byte n, _ := f.Read(buf[:]) src := bytes.NewBuffer(buf[:n]) // TODO(gri) we need a better way to terminate CommentsDo defer func() { if p := recover(); p != nil { if s, ok := p.(string); ok { first = s } } }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:18:33 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/test-utils_test.go
if err != nil { t.Fatal(failTestStr(anonTestStr, err.Error())) } // creating 2 read closer (to set as request body) from the body content. readerOne := io.NopCloser(bytes.NewBuffer(buf)) readerTwo := io.NopCloser(bytes.NewBuffer(buf)) anonReq.Body = readerOne // call the HTTP handler. apiRouter.ServeHTTP(rec, anonReq) // expected error response when the unsigned HTTP request is not permitted.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go
Nodes: nodes, }) } func dotToSvg(dot []byte) ([]byte, error) { cmd := exec.Command("dot", "-Tsvg") out := &bytes.Buffer{} cmd.Stdin, cmd.Stdout, cmd.Stderr = bytes.NewBuffer(dot), out, os.Stderr if err := cmd.Run(); err != nil { return nil, err } // Fix dot bug related to unquoted ampersands. svg := bytes.Replace(out.Bytes(), []byte("&;"), []byte("&;"), -1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 14K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
if err != nil { return nil, err } b, _, minor, err := checkXL2V1(b) if err != nil { return nil, err } filemap[file] = make(map[string]string) buf := bytes.NewBuffer(nil) v0 := "" var data xlMetaInlineData switch minor { case 0: _, err = msgp.CopyToJSON(buf, bytes.NewReader(b)) if err != nil { return nil, err } case 1, 2:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 31 14:49:23 UTC 2024 - 38.5K bytes - Viewed (0) -
cmd/object-api-utils.go
} } const skip = 2<<20 + 511 r, _ := newS2CompressReader(bytes.NewBuffer(data), int64(len(data)), true) b, err := io.ReadAll(r) failOnErr(err) failOnErr(r.Close()) // Decompression reader. s2Reader := s2.NewReader(bytes.NewBuffer(b)) // Apply the skipLen on the decompressed stream. failOnErr(s2Reader.Skip(skip)) got, err := io.ReadAll(s2Reader)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 36.3K bytes - Viewed (0) -
src/image/gif/writer_test.go
image.Rect(0, 0, 100, 50), image.Rect(0, 50, 100, 100), image.Rect(0, 0, 50, 100), image.Rect(50, 0, 100, 100), } for _, sr := range subImages { si := whole.SubImage(sr) buf := bytes.NewBuffer(nil) if err := Encode(buf, si, nil); err != nil { t.Errorf("Encode: sr=%v: %v", sr, err) continue } if _, err := Decode(buf); err != nil { t.Errorf("Decode: sr=%v: %v", sr, err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
pkg/config/xds/filter_types.gen.go
_ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/quic/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/raw_buffer/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/s2a/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/starttls/v3"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jun 02 02:48:23 UTC 2024 - 26.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
// validity. func ParseData(data []byte) (*Profile, error) { var p *Profile var err error if len(data) >= 2 && data[0] == 0x1f && data[1] == 0x8b { gz, err := gzip.NewReader(bytes.NewBuffer(data)) if err == nil { data, err = io.ReadAll(gz) } if err != nil { return nil, fmt.Errorf("decompressing profile: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/object_api_suite_test.go
for i := 1; i <= 10; i++ { expectedETaghex := getMD5Hash(data) var calcPartInfo PartInfo calcPartInfo, err = obj.PutObjectPart(context.Background(), "bucket", "key", uploadID, i, mustGetPutObjReader(t, bytes.NewBuffer(data), int64(len(data)), expectedETaghex, ""), opts) if err != nil { t.Errorf("%s: <ERROR> %s", instanceType, err) } if calcPartInfo.ETag != expectedETaghex { t.Errorf("MD5 Mismatch") }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 33.4K bytes - Viewed (0)