public static IByteOutDevice Wrap(IBlockOutDevice device) { return device.NotNull() ? new BlockByteOutDevice(device) { Wrapped = true } : null; }
public static IByteOutDevice Open(IBlockOutDevice device) { return device.NotNull() ? new BlockByteOutDevice(device) : null; }
public static IBlockDevice Wrap(IBlockInDevice inDevice, IBlockOutDevice outDevice) { return inDevice.NotNull() || outDevice.NotNull() ? new BlockDeviceCombiner(inDevice, outDevice) { Wrapped = true } : null; }
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; }