Skip to main content

Class Buffer

Namespace: HarfBuzzSharp
Assembly: VelloSharp.HarfBuzzSharp.dll

public sealed class Buffer : IDisposable

Inheritance

objectBuffer

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Fields

DefaultReplacementCodepoint

public const int DefaultReplacementCodepoint = 65533

Field Value

int

Properties

ClusterLevel

public ClusterLevel ClusterLevel { get; set; }

Property Value

ClusterLevel

ContentType

public ContentType ContentType { get; set; }

Property Value

ContentType

Direction

public Direction Direction { get; set; }

Property Value

Direction

Flags

public BufferFlags Flags { get; set; }

Property Value

BufferFlags

GlyphInfos

public GlyphInfo[] GlyphInfos { get; }

Property Value

GlyphInfo[]

GlyphPositions

public GlyphPosition[] GlyphPositions { get; }

Property Value

GlyphPosition[]

InvisibleGlyph

public uint InvisibleGlyph { get; set; }

Property Value

uint

Language

public Language Language { get; set; }

Property Value

Language

Length

public int Length { get; }

Property Value

int

ReplacementCodepoint

public uint ReplacementCodepoint { get; set; }

Property Value

uint

Script

public Script Script { get; set; }

Property Value

Script

UnicodeFunctions

public UnicodeFunctions UnicodeFunctions { get; set; }

Property Value

UnicodeFunctions

Methods

Add(uint, uint)

public void Add(uint codepoint, uint cluster)

Parameters

codepoint uint

cluster uint

AddUtf16(ReadOnlySpan<char>, int, int)

public void AddUtf16(ReadOnlySpan<char> text, int start, int length)

Parameters

text ReadOnlySpan<char>

start int

length int

AddUtf16(string)

public void AddUtf16(string text)

Parameters

text string

AddUtf32(ReadOnlySpan<int>)

public void AddUtf32(ReadOnlySpan<int> text)

Parameters

text ReadOnlySpan<int>

AddUtf32(ReadOnlySpan<int>, int, int)

public void AddUtf32(ReadOnlySpan<int> text, int itemOffset, int itemLength)

Parameters

text ReadOnlySpan<int>

itemOffset int

itemLength int

AddUtf8(ReadOnlySpan<byte>)

public void AddUtf8(ReadOnlySpan<byte> text)

Parameters

text ReadOnlySpan<byte>

AddUtf8(ReadOnlySpan<byte>, int, int)

public void AddUtf8(ReadOnlySpan<byte> text, int itemOffset, int itemLength)

Parameters

text ReadOnlySpan<byte>

itemOffset int

itemLength int

AddUtf8(nint, int, int, int)

public void AddUtf8(nint text, int textLength, int itemOffset, int itemLength)

Parameters

text nint

textLength int

itemOffset int

itemLength int

ClearContents()

public void ClearContents()

DeserializeGlyphs(string)

public void DeserializeGlyphs(string data)

Parameters

data string

DeserializeGlyphs(string, Font?)

public void DeserializeGlyphs(string data, Font? font)

Parameters

data string

font Font?

DeserializeGlyphs(string, Font?, SerializeFormat)

public void DeserializeGlyphs(string data, Font? font, SerializeFormat format)

Parameters

data string

font Font?

format SerializeFormat

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetGlyphInfoSpan()

public Span<GlyphInfo> GetGlyphInfoSpan()

Returns

Span<GlyphInfo>

GetGlyphPositionSpan()

public Span<GlyphPosition> GetGlyphPositionSpan()

Returns

Span<GlyphPosition>

GuessSegmentProperties()

public void GuessSegmentProperties()

NormalizeGlyphs()

public void NormalizeGlyphs()

Reset()

public void Reset()

Reverse()

public void Reverse()

ReverseClusters()

public void ReverseClusters()

ReverseRange(int, int)

public void ReverseRange(int start, int end)

Parameters

start int

end int

SerializeGlyphs()

public string SerializeGlyphs()

Returns

string

SerializeGlyphs(int, int)

public string SerializeGlyphs(int start, int end)

Parameters

start int

end int

Returns

string

SerializeGlyphs(Font)

public string SerializeGlyphs(Font font)

Parameters

font Font

Returns

string

SerializeGlyphs(Font?, SerializeFormat, SerializeFlag)

public string SerializeGlyphs(Font? font, SerializeFormat format, SerializeFlag flags)

Parameters

font Font?

format SerializeFormat

flags SerializeFlag

Returns

string

SerializeGlyphs(int, int, Font?, SerializeFormat, SerializeFlag)

public string SerializeGlyphs(int start, int end, Font? font, SerializeFormat format, SerializeFlag flags)

Parameters

start int

end int

font Font?

format SerializeFormat

flags SerializeFlag

Returns

string