azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Bix::Consider introducing `IBixSource` a'la `ISourceText` for JSON with hybrid reading and revise the use of `Text.Encoding` vs `Text.Decoder` in string methods #843

Open itadapter opened 1 year ago

itadapter commented 1 year ago

Add IBixSource with hybrid sync/async model similar to ISourceText in #731. Consider pooling IBixSource instances.

  new BixReader(Stream stream);
  new BixReader(IBixSource source);

  new BixStreamSource(Stream stream);
  new BixBufferSource(byte[] buffer);
  new BixBufferSource(Memory<byte> memory);
  new BixBufferSource(ReadOnlySpan<byte> span);