public bool Extract(IEnumerable <T> target, BitWriter bitWriter) { foreach (var item in target) { var hasDataLeftToExtract = _itemSteganographer.Extract(item, bitWriter); if (!hasDataLeftToExtract) { return(false); } } return(true); }
public static void ExtractToStream <T>(this ISteganographer <T> steganographer, T target, Stream outputStream) where T : class { var bitWriter = new BitWriter(outputStream); steganographer.Extract(target, bitWriter); }
public bool Extract(TInput target, BitWriter bitWriter) { return(_innerSteganographer.Extract((TOutput)target, bitWriter)); }