10 references to Length
Microsoft.ML.Tokenizers (10)
Model\SentencePieceTokenizer.cs (3)
1656
if (AddDummyPrefix && TreatWhitespaceAsSuffix && suffixIndex >= 0 && sb.
Length
> 0)
1659
Debug.Assert(sb.
Length
> suffixIndex);
1728
suffixIndex = sb.
Length
- 1;
Utils\ValueStringBuilder.cs (7)
60
/// Does not ensure there is a null char after <see cref="
Length
"/>
72
/// <param name="terminate">Ensures that the builder has a null char after <see cref="
Length
"/></param>
77
EnsureCapacity(
Length
+ 1);
78
_chars[
Length
] = '\0';
115
/// <param name="terminate">Ensures that the builder has a null char after <see cref="
Length
"/></param>
120
EnsureCapacity(
Length
+ 1);
121
_chars[
Length
] = '\0';