public VstStreamWriter(BStream stream) { if (!stream.CanWrite) { throw new ArgumentException("Cannot write to stream.", nameof(stream)); } _stream = stream; }
public VstStreamReader(BStream stream) { if (!stream.CanRead) { throw new ArgumentException("Cannot read from stream.", nameof(stream)); } _stream = stream; }
public VstStreamWriter(IBStream stream) { _stream = new BStream(stream, StreamAccessMode.Write); }
public VstStreamReader(IBStream stream) { _stream = new BStream(stream, StreamAccessMode.Read); }