Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ErasureAlgo (0.12 sec)

  1. cmd/xl-storage-format-v2_string.go

    	_ = x[lastErasureAlgo-2]
    }
    
    const _ErasureAlgo_name = "invalidErasureAlgoReedSolomonlastErasureAlgo"
    
    var _ErasureAlgo_index = [...]uint8{0, 18, 29, 44}
    
    func (i ErasureAlgo) String() string {
    	if i >= ErasureAlgo(len(_ErasureAlgo_index)-1) {
    		return "ErasureAlgo(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _ErasureAlgo_name[_ErasureAlgo_index[i]:_ErasureAlgo_index[i+1]]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. cmd/erasure-coding.go

    			parity := total - data
    			testConfigs = append(testConfigs, [2]uint8{data, parity})
    		}
    	}
    	got := make(map[[2]uint8]map[ErasureAlgo]uint64, len(testConfigs))
    	// Copied from output of fmt.Printf("%#v", got) at the end.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen.go

    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *ErasureAlgo) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = ErasureAlgo(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z ErasureAlgo) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    	return e > invalidVersionType && e < lastVersionType
    }
    
    // ErasureAlgo defines common type of different erasure algorithms
    type ErasureAlgo uint8
    
    // List of currently supported erasure coding algorithms
    const (
    	invalidErasureAlgo ErasureAlgo = 0
    	ReedSolomon        ErasureAlgo = 1
    	lastErasureAlgo    ErasureAlgo = 2
    )
    
    func (e ErasureAlgo) valid() bool {
    	return e > invalidErasureAlgo && e < lastErasureAlgo
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top