Example #1
0
		public static IByteOutDevice Wrap(IBlockOutDevice device)
		{
			return device.NotNull() ? new BlockByteOutDevice(device) { Wrapped = true } : null;
		}
Example #2
0
		public static IByteOutDevice Open(IBlockOutDevice device)
		{
			return device.NotNull() ? new BlockByteOutDevice(device) : null;
		}
Example #3
0
		public static IBlockDevice Wrap(IBlockInDevice inDevice, IBlockOutDevice outDevice)
		{
			return inDevice.NotNull() || outDevice.NotNull() ? new BlockDeviceCombiner(inDevice, outDevice) { Wrapped = true } : null;
		}
Example #4
0
		public static IBlockDevice Open(IBlockInDevice inDevice, IBlockOutDevice outDevice)
		{
			return inDevice.NotNull() || outDevice.NotNull() ? new BlockDeviceCombiner(inDevice, outDevice) : null;
		}
		public static ChunkedBlockOutDevice Open(IBlockOutDevice backend)
		{
			return backend.NotNull() ? new ChunkedBlockOutDevice(backend) : null;
		}
		public static ChunkedBlockOutDevice Wrap(IBlockOutDevice backend)
		{
			return backend.NotNull() ? new ChunkedBlockOutDevice(backend) { Wrapped = true } : null;
		}