예제 #1
0
 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;
 }