public override int Read(Span <byte> buffer) { try { return(_stream.ReadSpan(buffer)); } catch (Exception ex) { throw new IOException("could not read from stream", ex); } }