daily update on 20250210 by nitload youmu

This commit is contained in:
Nitload
2025-02-10 12:48:02 +08:00
parent ae94c265ae
commit c23b640cae
70 changed files with 2135 additions and 805 deletions
@@ -1,6 +1,6 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// file="ExpReader.cs"
// file="ExpSource.cs"
// Project: StgSharp
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
@@ -64,10 +64,10 @@ namespace StgSharp.Script.Express
_memoryReader = new StreamReader( _expMemoryMappedStream );
}
public int Location => _location;
public bool IsEmpty => _memoryReader.EndOfStream;
public int Location => _location;
// ~ExpFileSource()
// {
// Dispose(disposing: false);
@@ -79,10 +79,14 @@ namespace StgSharp.Script.Express
GC.SuppressFinalize( this );
}
public void EndWriting()
{
}
public string ReadLine()
{
readLineSemaphore.Wait();
string line = _memoryReader.ReadLine();
string line = _memoryReader.ReadLine()!;
_location++;
readLineSemaphore.Release();
return line;
@@ -96,6 +100,11 @@ namespace StgSharp.Script.Express
readLineSemaphore.Release();
}
public IScriptSourceProvider Slice(int location, int count)
{
throw new NotImplementedException();
}
protected virtual void Dispose( bool disposing )
{
if( !disposedValue ) {