Example #1
0
// TODO - think again if this is needed
// GetEncodedBlockLen - wrapper around erasure function with the same name
func (e encoder) GetEncodedBlockLen(dataLength int) (int, *probe.Error) {
	if dataLength <= 0 {
		return 0, probe.NewError(InvalidArgument{})
	}
	return encoding.GetEncodedBlockLen(dataLength, e.k), nil
}
Example #2
0
// TODO - think again if this is needed
// GetEncodedBlockLen - wrapper around erasure function with the same name
func (e encoder) GetEncodedBlockLen(dataLength int) (int, error) {
	if dataLength <= 0 {
		return 0, iodine.New(InvalidArgument{}, nil)
	}
	return encoding.GetEncodedBlockLen(dataLength, e.k), nil
}