示例#1
0
 public char this[Index index]
 {
     get
     {
         int actualIndex = index.GetOffset(Length);
         return(this[actualIndex]);
     }
 }
示例#2
0
        /// <summary>
        /// Gets the <see cref="Char8"/> at the specified position.
        /// </summary>
        public Char8 this[Index index]
        {
            get
            {
                // Just like String, we don't allow indexing into the null terminator itself.

                int actualIndex = index.GetOffset(Length);
                return(this[actualIndex]);
            }
        }
        public Utf8String Substring(Index startIndex)
        {
            int actualIndex = startIndex.GetOffset(Length);

            return(Substring(actualIndex));
        }
示例#4
0
        public Memory <T> Slice(Index startIndex)
        {
            int actualIndex = startIndex.GetOffset(_length);

            return(Slice(actualIndex));
        }