public char this[Index index] { get { int actualIndex = index.GetOffset(Length); return(this[actualIndex]); } }
/// <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)); }
public Memory <T> Slice(Index startIndex) { int actualIndex = startIndex.GetOffset(_length); return(Slice(actualIndex)); }