| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Lua.IO;
- namespace Lua.Tests.Helpers
- {
- public class NotSupportedStreamBase : ILuaStream
- {
- public virtual void Dispose()
- {
- }
- public virtual LuaFileOpenMode Mode => throw IOThrowHelpers.GetNotSupportedException();
- public virtual ValueTask<string?> ReadLineAsync(CancellationToken cancellationToken)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual ValueTask<string> ReadAllAsync(CancellationToken cancellationToken)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual ValueTask<string?> ReadStringAsync(int count, CancellationToken cancellationToken)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual ValueTask WriteAsync(ReadOnlyMemory<char> content, CancellationToken cancellationToken)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual ValueTask FlushAsync(CancellationToken cancellationToken)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual void SetVBuf(LuaFileBufferingMode mode, int size)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- public virtual long Seek(long offset, SeekOrigin origin)
- {
- throw IOThrowHelpers.GetNotSupportedException();
- }
- }
- }
|