Table of Contents

Class TextMemoryStream

Namespace
SunamoShared.Streams
Assembly
SunamoShared.dll

In-memory text stream backed by a file for persistence.

public class TextMemoryStream
Inheritance
TextMemoryStream
Inherited Members
Extension Methods

Constructors

TextMemoryStream(string)

Initializes a new instance with the specified file path.

public TextMemoryStream(string path)

Parameters

path string

The file path to use for loading and saving.

Properties

Line

The text content buffer.

public StringBuilder Line { get; set; }

Property Value

StringBuilder

Methods

Init()

Loads the file content into the buffer.

public Task Init()

Returns

Task

Save()

Saves the buffer content to the file.

public Task Save()

Returns

Task