Edit

Share via


Buffer Class

Definition

Represents a text buffer in memory.

public class Buffer : HarfBuzzSharp.NativeObject
Inheritance

Constructors

Buffer()

Creates a new Buffer() with default values.

Fields

DefaultReplacementCodepoint

Properties

ClusterLevel
ContentType
Direction

Get or sets the text flow direction of the buffer.

Flags
GlyphInfos

Gets the buffer glyph information array.

GlyphPositions

Gets the buffer glyph position array.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from NativeObject)
InvisibleGlyph
Language
Length

Gets or sets the size of the buffer.

ReplacementCodepoint
Script
UnicodeFunctions

Methods

Add(Int32, Int32)
Add(UInt32, UInt32)

Appends a character with the Unicode value and gives it the initial cluster value.

AddCodepoints(IntPtr, Int32, Int32, Int32)
AddCodepoints(IntPtr, Int32)
AddCodepoints(ReadOnlySpan<Int32>, Int32, Int32)
AddCodepoints(ReadOnlySpan<Int32>)
AddCodepoints(ReadOnlySpan<UInt32>, Int32, Int32)
AddCodepoints(ReadOnlySpan<UInt32>)

Appends characters from the span to the buffer.

AddUtf16(IntPtr, Int32, Int32, Int32)
AddUtf16(IntPtr, Int32)
AddUtf16(ReadOnlySpan<Byte>)
AddUtf16(ReadOnlySpan<Char>, Int32, Int32)
AddUtf16(ReadOnlySpan<Char>)
AddUtf16(String, Int32, Int32)
AddUtf16(String)
AddUtf32(IntPtr, Int32, Int32, Int32)
AddUtf32(IntPtr, Int32)
AddUtf32(ReadOnlySpan<Byte>)
AddUtf32(ReadOnlySpan<Int32>, Int32, Int32)
AddUtf32(ReadOnlySpan<Int32>)
AddUtf32(ReadOnlySpan<UInt32>, Int32, Int32)
AddUtf32(ReadOnlySpan<UInt32>)
AddUtf32(String)
AddUtf8(Byte[])

Appends the specified text bytes to the buffer.

AddUtf8(IntPtr, Int32, Int32, Int32)
AddUtf8(IntPtr, Int32)
AddUtf8(ReadOnlySpan<Byte>, Int32, Int32)
AddUtf8(ReadOnlySpan<Byte>)
AddUtf8(String)

Appends the specified text to the buffer.

Append(Buffer, Int32, Int32)
Append(Buffer)
ClearContents()

Clears the buffer's contents.

DeserializeGlyphs(String, Font, SerializeFormat)
DeserializeGlyphs(String, Font)
DeserializeGlyphs(String)
Dispose()

Releases all resources used by this NativeObject.

(Inherited from NativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the Buffer and optionally releases the managed resources.

DisposeHandler()

Releases the unmanaged resources used.

GetGlyphInfoSpan()
GetGlyphPositionSpan()
GuessSegmentProperties()

Sets the unset buffer segment properties based on the buffer's Unicode contents.

NormalizeGlyphs()
Reset()
Reverse()
ReverseClusters()
ReverseRange(Int32, Int32)
SerializeGlyphs()
SerializeGlyphs(Font, SerializeFormat, SerializeFlag)
SerializeGlyphs(Font)
SerializeGlyphs(Int32, Int32, Font, SerializeFormat, SerializeFlag)
SerializeGlyphs(Int32, Int32)

Applies to