- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MultiWriter (0.1 sec)
-
cmd/erasure-encode.go
package cmd import ( "context" "fmt" "io" ) // Writes to multiple writers type multiWriter struct { writers []io.Writer writeQuorum int errs []error } // Write writes data to writers. func (p *multiWriter) Write(ctx context.Context, blocks [][]byte) error { for i := range p.writers { if p.errs[i] != nil { continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.9K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
var wroteBuf bytes.Buffer readHash := crc32.NewIEEE() wroteHash := crc32.NewIEEE() read := io.Writer(readHash) wrote := io.Writer(wroteHash) if debug { read = io.MultiWriter(read, &readBuf) wrote = io.MultiWriter(wrote, &wroteBuf) } debugln := func(args ...interface{}) { if debug { fmt.Println(args...) } } // Inject random reader/writer sleeps.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0) -
cmd/erasure-decode.go
if derr == nil { derr = err } } } else if err != nil { return err } if err = e.DecodeDataAndParityBlocks(ctx, bufs); err != nil { return err } w := multiWriter{ writers: writers, writeQuorum: 1, errs: make([]error, len(writers)), } if err = w.Write(ctx, bufs); err != nil { return err } } return derr
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0) -
cmd/bucket-handlers.go
buf.Reset() bytebufferpool.Put(buf) }() md5w := md5.New() // Maximum allowed fan-out object size. const maxFanOutSize = 16 << 20 n, err := io.Copy(io.MultiWriter(buf, md5w), ioutil.HardLimitReader(pReader, maxFanOutSize)) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // Set the correct hex md5sum for the fan-out stream.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0) -
api/go1.txt
pkg io, func Copy(Writer, Reader) (int64, error) pkg io, func CopyN(Writer, Reader, int64) (int64, error) pkg io, func LimitReader(Reader, int64) Reader pkg io, func MultiReader(...Reader) Reader pkg io, func MultiWriter(...Writer) Writer pkg io, func NewSectionReader(ReaderAt, int64, int64) *SectionReader pkg io, func Pipe() (*PipeReader, *PipeWriter) pkg io, func ReadAtLeast(Reader, []uint8, int) (int, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)