コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public bool Extract(TInput target, BitWriter bitWriter)
 {
     return(_innerSteganographer.Extract((TOutput)target, bitWriter));
 }