docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RightDirectionRangeGenerator

    Generates a sequence of Range starting from the right (the upper bound of the source).

    Inheritance
    object
    RangeGeneratorBase
    RightDirectionRangeGenerator
    Implements
    IRangeGenerator
    Inherited Members
    RangeGeneratorBase.GetRanges(int, int, int, Output<Range>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.InferenceEngine.Tokenization.Truncators
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class RightDirectionRangeGenerator : RangeGeneratorBase, IRangeGenerator

    Methods

    GetRangesInternal(int, int, int, Output<Range>)

    Generates a sequence of chunks based on the length of the source, the maximum size of those chunks, and a stride.

    Declaration
    protected override int GetRangesInternal(int length, int rangeMaxLength, int stride, Output<Range> output)
    Parameters
    Type Name Description
    int length

    The length of the source.

    int rangeMaxLength

    The maximum size of the resulting chunks.

    int stride

    The stride controls how the generator goes along the length of the source.

    Output<Range> output

    The sequence of chunks, each represented by a Range.

    Returns
    Type Description
    int

    The number of ranges generated.

    Overrides
    RangeGeneratorBase.GetRangesInternal(int, int, int, Output<Range>)

    Implements

    IRangeGenerator
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)