Class Buffer
Namespace: HarfBuzzSharp
Assembly: VelloSharp.HarfBuzzSharp.dll
public sealed class Buffer : IDisposable
Inheritance
Implements
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
Properties
ClusterLevel
public ClusterLevel ClusterLevel { get; set; }
Property Value
ContentType
public ContentType ContentType { get; set; }
Property Value
Direction
public Direction Direction { get; set; }
Property Value
Flags
public BufferFlags Flags { get; set; }
Property Value
GlyphInfos
public GlyphInfo[] GlyphInfos { get; }
Property Value
GlyphPositions
public GlyphPosition[] GlyphPositions { get; }
Property Value
InvisibleGlyph
public uint InvisibleGlyph { get; set; }
Property Value
Language
public Language Language { get; set; }
Property Value
Length
public int Length { get; }
Property Value
ReplacementCodepoint
public uint ReplacementCodepoint { get; set; }
Property Value
Script
public Script Script { get; set; }
Property Value
UnicodeFunctions
public UnicodeFunctions UnicodeFunctions { get; set; }
Property Value
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
GetGlyphPositionSpan()
public Span<GlyphPosition> GetGlyphPositionSpan()
Returns
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
SerializeGlyphs(int, int)
public string SerializeGlyphs(int start, int end)
Parameters
start
int
end
int
Returns
SerializeGlyphs(Font)
public string SerializeGlyphs(Font font)
Parameters
font
Font
Returns
SerializeGlyphs(Font?, SerializeFormat, SerializeFlag)
public string SerializeGlyphs(Font? font, SerializeFormat format, SerializeFlag flags)
Parameters
font
Font?
format
SerializeFormat
flags
SerializeFlag
Returns
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