- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for EncodeData (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/erasure-coding.go
// Error conditions should be checked above. panic(err) } enc = e }) return enc } return e, err } // EncodeData encodes the given data and returns the erasure-coded data. // It returns an error if the erasure coding failed. func (e *Erasure) EncodeData(ctx context.Context, data []byte) ([][]byte, error) { if len(data) == 0 { return make([][]byte, e.dataBlocks+e.parityBlocks), nil }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.5K bytes - Click Count (0) -
cmd/erasure-encode.go
if n == 0 && total != 0 { // Reached EOF, nothing more to be done. break } // We take care of the situation where if n == 0 and total == 0 by creating empty data and parity files. blocks, err = e.EncodeData(ctx, buf[:n]) if err != nil { return 0, err } if err = writer.Write(ctx, blocks); err != nil { return 0, err } total += int64(n) if eof { break } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 15 00:11:04 GMT 2024 - 2.9K bytes - Click Count (0)