public FileSystemStreamProvider(string path) { _path = path; _sourceState = File.Exists(path) ? StreamProviderSourceState.Reconnected : StreamProviderSourceState.Created; }
public MemoryStreamProvider(byte[] buffer) { _buffer = buffer; _sourceState = StreamProviderSourceState.Reconnected; }
public MemoryStreamProvider(int capacity) : this(new byte[capacity]) { _sourceState = StreamProviderSourceState.Created; }