コード例 #1
0
ファイル: ByteDeviceCombiner.cs プロジェクト: Spaxys/Kean
 public static IByteDevice Wrap(IByteInDevice inDevice, IByteOutDevice outDevice)
 {
     return(inDevice.NotNull() || outDevice.NotNull() ? new ByteDeviceCombiner(inDevice, outDevice)
     {
         Wrapped = true
     } : null);
 }
コード例 #2
0
		public static IByteDevice Wrap(IByteInDevice inDevice, IByteOutDevice outDevice)
		{
			return inDevice.NotNull() || outDevice.NotNull() ? new ByteDeviceCombiner(inDevice, outDevice) { Wrapped = true } : null;
		}
コード例 #3
0
		public static IByteDevice Open(IByteInDevice inDevice, IByteOutDevice outDevice)
		{
			return inDevice.NotNull() || outDevice.NotNull() ? new ByteDeviceCombiner(inDevice, outDevice) : null;
		}
コード例 #4
0
ファイル: ByteDeviceCombiner.cs プロジェクト: Spaxys/Kean
 public static IByteDevice Open(IByteInDevice inDevice, IByteOutDevice outDevice)
 {
     return(inDevice.NotNull() || outDevice.NotNull() ? new ByteDeviceCombiner(inDevice, outDevice) : null);
 }
コード例 #5
0
		public static ChunkedBlockOutDevice Wrap(IByteOutDevice backend)
		{
			return backend.NotNull() ? new ChunkedBlockOutDevice(backend) { Wrapped = true } : null;
		}
コード例 #6
0
		public static ChunkedBlockOutDevice Open(IByteOutDevice backend)
		{
			return backend.NotNull() ? new ChunkedBlockOutDevice(backend) : null;
		}