Class TextRenderer.TextArena
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
An append-only arena for building many formatted lines into one large backing buffer without allocating. Each returns its text as a slice that stays valid until the next .
csharp
public sealed class TextRenderer.TextArenaInheritance
object ← TextRenderer.TextArena
Constructors
TextArena(int)
An append-only arena for building many formatted lines into one large backing buffer without allocating. Each returns its text as a slice that stays valid until the next .
csharp
public TextArena(int capacity)Parameters
capacity int
Methods
Clear()
Discards all text, invalidating previously returned slices.
csharp
public void Clear()Format(ref FormatHandler)
Formats an interpolated string into the arena without allocating and returns the written slice. Text that does not fit the remaining space comes out empty.
csharp
public TextRenderer.TextMemory Format(ref TextRenderer.TextMemory.FormatHandler handler)Parameters
handler TextRenderer.TextMemory.FormatHandler

