/// <summary> /// Gets the enture buffer's content as a string. /// </summary> /// <returns></returns> public string GetString() { return(Utf32Utils.FromUtf32(AsSlice())); }
/// <summary> /// Gets a part of the buffer as a string. /// </summary> /// <param name="start">The UTF-32 code point index of the first character to retrieve</param> /// <param name="length">The number of code points in the string to be retrieved</param> /// <returns>A string equivalent to the specified code point range.</returns> public string GetString(int start, int length) { return(Utf32Utils.FromUtf32(SubSlice(start, length))); }
/// <summary> /// Gets the enture buffer's content as a string. /// </summary> /// <returns></returns> public override string ToString() { return(Utf32Utils.FromUtf32(AsSlice())); }