- Sort Score
- Result 10 results
- Languages All
Results 41 - 44 of 44 for NewBuffer (0.12 sec)
-
cmd/erasure-object_test.go
t.Fatal(err) } gr, err := obj.GetObjectNInfo(ctx, bucket, object, nil, nil, ObjectOptions{}) if err != nil { t.Fatalf("Expected GetObject to succeed, but failed with %v", err) } output := bytes.NewBuffer([]byte{}) _, err = io.Copy(output, gr) if err != nil { t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err) } gr.Close() if !bytes.Equal(output.Bytes(), smallData) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0) -
src/archive/zip/reader_test.go
if err != ErrFormat { t.Fatalf("unexpected error, got: %v, want: %v", err, ErrFormat) } // Also check that an archive containing a handful of empty // files doesn't cause an issue b := bytes.NewBuffer(nil) w := NewWriter(b) for i := 0; i < 5; i++ { _, err := w.Create("") if err != nil { t.Fatalf("Writer.Create failed: %s", err) } } if err := w.Close(); err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
cmd/erasure-server-pool.go
var r io.ReadCloser if !si.Dir { r, err = disk.ReadFileStream(ctx, volume, si.Name, 0, si.Size) if err != nil { continue } } else { r = io.NopCloser(bytes.NewBuffer([]byte{})) } // Keep disk path instead of ID, to ensure that the downloaded zip file can be // easily automated with `minio server hostname{1...n}/disk{1...m}`.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 29 22:40:36 UTC 2024 - 89.8K bytes - Viewed (0) -
api/go1.txt
pkg bytes, func LastIndexAny([]uint8, string) int pkg bytes, func LastIndexFunc([]uint8, func(int32) bool) int pkg bytes, func Map(func(int32) int32, []uint8) []uint8 pkg bytes, func NewBuffer([]uint8) *Buffer pkg bytes, func NewBufferString(string) *Buffer pkg bytes, func NewReader([]uint8) *Reader pkg bytes, func Repeat([]uint8, int) []uint8 pkg bytes, func Replace([]uint8, []uint8, []uint8, int) []uint8
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)