diff --git a/src/core/PublicAPI.Unshipped.txt b/src/core/PublicAPI.Unshipped.txt index b0a3dd8..ce42b7a 100644 --- a/src/core/PublicAPI.Unshipped.txt +++ b/src/core/PublicAPI.Unshipped.txt @@ -400,6 +400,7 @@ Vezel.Cathode.Text.Control.ControlBuilder.HorizontalTab() -> Vezel.Cathode.Text. Vezel.Cathode.Text.Control.ControlBuilder.InsertCharacters(int count) -> Vezel.Cathode.Text.Control.ControlBuilder! Vezel.Cathode.Text.Control.ControlBuilder.InsertLines(int count) -> Vezel.Cathode.Text.Control.ControlBuilder! Vezel.Cathode.Text.Control.ControlBuilder.LineFeed() -> Vezel.Cathode.Text.Control.ControlBuilder! +Vezel.Cathode.Text.Control.ControlBuilder.Memory.get -> System.ReadOnlyMemory Vezel.Cathode.Text.Control.ControlBuilder.MoveBufferDown(int count) -> Vezel.Cathode.Text.Control.ControlBuilder! Vezel.Cathode.Text.Control.ControlBuilder.MoveBufferUp(int count) -> Vezel.Cathode.Text.Control.ControlBuilder! Vezel.Cathode.Text.Control.ControlBuilder.MoveCursorDown(int count) -> Vezel.Cathode.Text.Control.ControlBuilder! diff --git a/src/core/Text/Control/ControlBuilder.cs b/src/core/Text/Control/ControlBuilder.cs index 1358a4a..e6533bd 100644 --- a/src/core/Text/Control/ControlBuilder.cs +++ b/src/core/Text/Control/ControlBuilder.cs @@ -119,6 +119,8 @@ public void AppendFormatted(scoped ReadOnlySpan value) public ReadOnlySpan Span => _writer.WrittenSpan; + public ReadOnlyMemory Memory => _writer.WrittenMemory; + private static readonly CultureInfo _culture = CultureInfo.InvariantCulture; private readonly int _capacity;