SetRedundancyFactor changes the value of redundancy factor.
(rf float64)
| 45 | |
| 46 | // SetRedundancyFactor changes the value of redundancy factor. |
| 47 | func (e *Encoder) SetRedundancyFactor(rf float64) { |
| 48 | e.redundancyFactor = rf |
| 49 | } |
| 50 | |
| 51 | func (e *Encoder) frame(blockCode int64, total int, data []byte) string { |
| 52 | return fmt.Sprintf("%d/%d/%d|%s", blockCode, e.chunkLen, total, string(data)) |
nothing calls this directly
no outgoing calls
no test coverage detected