Пример #1
0
 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
		public static IByteInDevice Open(IByteInDevice backend, byte[] endMark)
		{
			return backend.NotNull() ? endMark.NotEmpty() ? new PartialByteInDevice(backend, endMark) : backend : null;
		}
Пример #5
0
		public static IByteInDevice Open(IByteInDevice device, int length)
		{
			return (device.NotNull() && length > 0) ? new FixedLengthByteInDevice(device, length) : null;
		}
Пример #6
0
 public static IByteDevice Open(IByteInDevice inDevice, IByteOutDevice outDevice)
 {
     return(inDevice.NotNull() || outDevice.NotNull() ? new ByteDeviceCombiner(inDevice, outDevice) : null);
 }