Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErasureAlgo (0.06 sec)

  1. 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)
  2. 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