public static async Task <SaveGame> ParseAsync(Stream stream) { var options = new System.IO.Pipelines.PipeOptions(pauseWriterThreshold: 1024 * 1024); var scanner = new Scanner(new AsyncStreamPipe(stream, options).Input, SaveGameEncoding); var tokens = await scanner.ReadTokensAsync().ToListAsync(); using (var ms = new MemoryStream(0x1000)) //default buffer size - 4KiB { using (var writer = new StreamBufferWriter(ms)) { CK2Parsing.TokensToJson(tokens, writer); } ms.Seek(0, SeekOrigin.Begin); return(new SaveGame(await JsonDocument.ParseAsync(ms))); } }
public Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext CreateConnection(System.IO.Pipelines.PipeOptions transportPipeOptions, System.IO.Pipelines.PipeOptions appPipeOptions) { throw null; }
public Pipe(System.IO.Pipelines.PipeOptions options) { }
public Pipe(System.IO.Pipelines.PipeOptions options) => throw null;