-
Notifications
You must be signed in to change notification settings - Fork 0
JSONFormatterStreamer
robbyxp1 edited this page Feb 13, 2024
·
4 revisions
Using Fluent syntax stream tokens to a stream, quick and easy way to make a JSON file without needing to hold the whole structure in memory
public class JSONFormatterStreamer : QuickJSON.JSONFormatter,
System.IDisposable
Inheritance System.Object 🡒 JSONFormatter 🡒 JSONFormatterStreamer
Implements System.IDisposable
Construct
public JSONFormatterStreamer(System.IO.Stream stream, int writeblock=1000, System.Text.Encoding encoding=null);
stream
System.IO.Stream
stream to write to
writeblock
System.Int32
length of data before write
encoding
System.Text.Encoding
character encoding (default UTF8)
Close() and then write all of the data to the stream
public void Dispose();
Implements Dispose()
Internal prefix function
protected override void Prefix(bool named);
named
System.Boolean
is named parameter