public FileSystemStreamProvider(string path)
 {
     _path = path;
     _sourceState = File.Exists(path)
         ? StreamProviderSourceState.Reconnected
         : StreamProviderSourceState.Created;
 }
示例#2
0
 public FileSystemStreamProvider(string path)
 {
     _path        = path;
     _sourceState = File.Exists(path)
         ? StreamProviderSourceState.Reconnected
         : StreamProviderSourceState.Created;
 }
示例#3
0
 public MemoryStreamProvider(byte[] buffer)
 {
     _buffer      = buffer;
     _sourceState = StreamProviderSourceState.Reconnected;
 }
示例#4
0
 public MemoryStreamProvider(int capacity)
     : this(new byte[capacity])
 {
     _sourceState = StreamProviderSourceState.Created;
 }
示例#5
0
 public MemoryStreamProvider(byte[] buffer)
 {
     _buffer = buffer;
     _sourceState = StreamProviderSourceState.Reconnected;
 }
示例#6
0
 public MemoryStreamProvider(int capacity)
     : this(new byte[capacity])
 {
     _sourceState = StreamProviderSourceState.Created;
 }