Smdn.Fundamental.Stream.LineOriented 3.1.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET 5.0 .NET Standard 1.1 .NET Framework 4.5
Install-Package Smdn.Fundamental.Stream.LineOriented -Version 3.1.0
dotnet add package Smdn.Fundamental.Stream.LineOriented --version 3.1.0
<PackageReference Include="Smdn.Fundamental.Stream.LineOriented" Version="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Smdn.Fundamental.Stream.LineOriented --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Smdn.Fundamental.Stream.LineOriented, 3.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Smdn.Fundamental.Stream.LineOriented as a Cake Addin
#addin nuget:?package=Smdn.Fundamental.Stream.LineOriented&version=3.1.0

// Install Smdn.Fundamental.Stream.LineOriented as a Cake Tool
#tool nuget:?package=Smdn.Fundamental.Stream.LineOriented&version=3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Smdn.Fundamental.Stream.LineOriented

Smdn.Fundamental.Stream.LineOriented.dll

API List

// Smdn.Fundamental.Stream.LineOriented.dll (Smdn.Fundamental.Stream.LineOriented-3.1.0)
//   Name: Smdn.Fundamental.Stream.LineOriented
//   AssemblyVersion: 3.1.0.0
//   InformationalVersion: 3.1.0+9f376fbefdaee2cc51ca4d0636a210d354e186c3
//   TargetFramework: .NETCoreApp,Version=v6.0
//   Configuration: Release

using System;
using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Smdn.IO.Streams.LineOriented;

namespace Smdn.IO.Streams.LineOriented {
  [Nullable(byte.MinValue)]
  [NullableContext(1)]
  [TypeForwardedFrom("Smdn, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null")]
  public class LineOrientedStream : Stream {
    [NullableContext(byte.MinValue)]
    public readonly struct Line {
      public Line(ReadOnlySequence<byte> sequenceWithNewLine, SequencePosition positionOfNewLine) {}

      public bool IsEmpty { get; }
      public ReadOnlySequence<byte> NewLine { get; }
      public SequencePosition PositionOfNewLine { get; }
      public ReadOnlySequence<byte> Sequence { get; }
      public ReadOnlySequence<byte> SequenceWithNewLine { get; }
    }

    protected const int DefaultBufferSize = 1024;
    protected const bool DefaultLeaveStreamOpen = false;
    protected const int MinimumBufferSize = 1;

    [NullableContext(byte.MinValue)]
    public LineOrientedStream([Nullable(1)] Stream stream, ReadOnlySpan<byte> newLine, int bufferSize = 1024, bool leaveStreamOpen = false) {}

    public int BufferSize { get; }
    public override bool CanRead { get; }
    public override bool CanSeek { get; }
    public override bool CanTimeout { get; }
    public override bool CanWrite { get; }
    public virtual Stream InnerStream { get; }
    public bool IsStrictNewLine { get; }
    public override long Length { get; }
    [Nullable(byte.MinValue)]
    public ReadOnlySpan<byte> NewLine { get; }
    public override long Position { get; set; }

    public override void CopyTo(Stream destination, int bufferSize) {}
    public void CopyTo(Stream destination) {}
    public Task CopyToAsync(Stream destination, CancellationToken cancellationToken) {}
    public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken = default) {}
    protected override void Dispose(bool disposing) {}
    public override void Flush() {}
    public override Task FlushAsync(CancellationToken cancellationToken) {}
    public long Read(Stream targetStream, long length) {}
    [NullableContext(byte.MinValue)]
    public override int Read(Span<byte> buffer) {}
    public override int Read(byte[] buffer, int offset, int count) {}
    public Task<long> ReadAsync(Stream targetStream, long length, CancellationToken cancellationToken = default) {}
    public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) {}
    [NullableContext(byte.MinValue)]
    public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) {}
    public override int ReadByte() {}
    public LineOrientedStream.Line? ReadLine() {}
    [NullableContext(2)]
    public byte[] ReadLine(bool keepEOL) {}
    [return: Nullable] public Task<ReadOnlySequence<byte>?> ReadLineAsync(bool keepEOL, CancellationToken cancellationToken = default) {}
    public Task<LineOrientedStream.Line?> ReadLineAsync(CancellationToken cancellationToken = default) {}
    public override long Seek(long offset, SeekOrigin origin) {}
    public override void SetLength(long @value) {}
    public override void Write(byte[] buffer, int offset, int count) {}
    public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) {}
    [NullableContext(byte.MinValue)]
    public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) {}
  }

  [TypeForwardedFrom("Smdn, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null")]
  public class LooseLineOrientedStream : LineOrientedStream {
    [NullableContext(1)]
    public LooseLineOrientedStream(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false) {}
  }

  [TypeForwardedFrom("Smdn, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null")]
  public class StrictLineOrientedStream : LineOrientedStream {
    [NullableContext(1)]
    public StrictLineOrientedStream(Stream stream, int bufferSize = 1024, bool leaveStreamOpen = false) {}
    public StrictLineOrientedStream([Nullable(1)] Stream stream, ReadOnlySpan<byte> newLine, int bufferSize = 1024, bool leaveStreamOpen = false) {}
  }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Smdn.Fundamental.Stream.LineOriented:

Package Downloads
Smdn The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Smdn.dll, fundamental utility and extension library

Smdn.Fundamental.PrintableEncoding.UUEncoding The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Smdn.Fundamental.PrintableEncoding.UUEncoding.dll

Smdn.Fundamental.MimeHeader The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Smdn.Fundamental.MimeHeader.dll

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.0 213 5/13/2022
3.0.2 82 2/20/2022
3.0.1 100 12/12/2021
3.0.0 1,519 8/20/2021