26 references to Contracts
Microsoft.ML.DataView (26)
VBuffer.cs (16)
117Contracts.CheckParam(length >= 0, nameof(length));
118Contracts.CheckParam(ArrayUtils.Size(values) >= length, nameof(values));
144Contracts.CheckParam(length >= 0, nameof(length));
145Contracts.CheckParam(0 <= count && count <= length, nameof(count));
146Contracts.CheckParam(ArrayUtils.Size(values) >= count, nameof(values));
147Contracts.CheckParam(count == length || ArrayUtils.Size(indices) >= count, nameof(indices));
225Contracts.CheckParam(0 <= sourceIndex && sourceIndex <= Length, nameof(sourceIndex));
226Contracts.CheckParam(0 <= length && sourceIndex <= Length - length, nameof(length));
287Contracts.CheckParam(0 <= destinationIndex && destinationIndex <= destination.Length - Length,
323Contracts.CheckParam(0 <= length && length <= ArrayUtils.Size(source), nameof(length));
324Contracts.CheckParam(0 <= sourceIndex && sourceIndex <= ArrayUtils.Size(source) - length, nameof(sourceIndex));
376Contracts.CheckParam(0 <= index && index < Length, nameof(index));
395Contracts.CheckParam(0 <= index && index < Length, nameof(index));
427Contracts.CheckParam(newLogicalLength >= 0, nameof(newLogicalLength), "Must be non-negative.");
428Contracts.CheckParam(valuesCount == null || valuesCount.Value >= 0, nameof(valuesCount),
430Contracts.CheckParam(valuesCount == null || valuesCount.Value <= newLogicalLength, nameof(valuesCount),