Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ErasureAlgo (0.38 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]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 02 19:29:16 GMT 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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 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))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K 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
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top