• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Class MemoryExtensions

    Contains extensions methods for memory types.

    Inheritance
    object
    MemoryExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.Fonts.Unicode
    Assembly: SixLabors.Fonts.dll
    Syntax
    public static class MemoryExtensions

    Methods

    | Edit this page View Source

    EnumerateCodePoints(ReadOnlySpan<char>)

    Returns an enumeration of CodePoint from the provided span.

    Declaration
    public static SpanCodePointEnumerator EnumerateCodePoints(this ReadOnlySpan<char> span)
    Parameters
    Type Name Description
    ReadOnlySpan<char> span

    The readonly span of char elements representing the text to enumerate.

    Returns
    Type Description
    SpanCodePointEnumerator

    The SpanCodePointEnumerator.

    Remarks

    Invalid sequences will be represented in the enumeration by ReplacementChar.

    | Edit this page View Source

    EnumerateCodePoints(Span<char>)

    Returns an enumeration of CodePoint from the provided span.

    Declaration
    public static SpanCodePointEnumerator EnumerateCodePoints(this Span<char> span)
    Parameters
    Type Name Description
    Span<char> span

    The span of char elements representing the text to enumerate.

    Returns
    Type Description
    SpanCodePointEnumerator

    The SpanCodePointEnumerator.

    Remarks

    Invalid sequences will be represented in the enumeration by ReplacementChar.

    | Edit this page View Source

    EnumerateGraphemes(ReadOnlySpan<char>)

    Returns an enumeration of Grapheme instances from the provided span.

    Declaration
    public static SpanGraphemeEnumerator EnumerateGraphemes(this ReadOnlySpan<char> span)
    Parameters
    Type Name Description
    ReadOnlySpan<char> span

    The readonly span of char elements representing the text to enumerate.

    Returns
    Type Description
    SpanGraphemeEnumerator

    The SpanGraphemeEnumerator.

    Remarks

    Invalid sequences will be represented in the enumeration by Any.

    | Edit this page View Source

    EnumerateGraphemes(Span<char>)

    Returns an enumeration of Grapheme instances from the provided span.

    Declaration
    public static SpanGraphemeEnumerator EnumerateGraphemes(this Span<char> span)
    Parameters
    Type Name Description
    Span<char> span

    The span of char elements representing the text to enumerate.

    Returns
    Type Description
    SpanGraphemeEnumerator

    The SpanGraphemeEnumerator.

    Remarks

    Invalid sequences will be represented in the enumeration by Any.

    | Edit this page View Source

    GetCodePointCount(ReadOnlySpan<char>)

    Returns the number of code points in the provided span.

    Declaration
    public static int GetCodePointCount(this ReadOnlySpan<char> span)
    Parameters
    Type Name Description
    ReadOnlySpan<char> span

    The readonly span of char elements representing the text to enumerate.

    Returns
    Type Description
    int

    The int count.

    | Edit this page View Source

    GetCodePointCount(Span<char>)

    Returns the number of code points in the provided span.

    Declaration
    public static int GetCodePointCount(this Span<char> span)
    Parameters
    Type Name Description
    Span<char> span

    The span of char elements representing the text to enumerate.

    Returns
    Type Description
    int

    The int count.

    | Edit this page View Source

    GetCodePointCount(string)

    Returns the number of code points in the provided text.

    Declaration
    public static int GetCodePointCount(this string text)
    Parameters
    Type Name Description
    string text

    The text to enumerate.

    Returns
    Type Description
    int

    The int count.

    | Edit this page View Source

    GetGraphemeCount(ReadOnlySpan<char>)

    Returns the number of graphemes in the provided span.

    Declaration
    public static int GetGraphemeCount(this ReadOnlySpan<char> span)
    Parameters
    Type Name Description
    ReadOnlySpan<char> span

    The readonly span of char elements representing the text to enumerate.

    Returns
    Type Description
    int

    The int count.

    | Edit this page View Source

    GetGraphemeCount(Span<char>)

    Returns the number of graphemes in the provided span.

    Declaration
    public static int GetGraphemeCount(this Span<char> span)
    Parameters
    Type Name Description
    Span<char> span

    The span of char elements representing the text to enumerate.

    Returns
    Type Description
    int

    The int count.

    | Edit this page View Source

    GetGraphemeCount(string)

    Returns the number of graphemes in the provided text.

    Declaration
    public static int GetGraphemeCount(this string text)
    Parameters
    Type Name Description
    string text

    The text to enumerate.

    Returns
    Type Description
    int

    The int count.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX