Exemplo n.º 1
0
 explicit Decoder(const Container& container)
   : IsValid(container.FastCheck())
   , Header(container.GetHeader())
   , Limit(container.GetSize())
   , Result(new Dump())
   , Decoded(*Result)
   , UsedSize(0)
 {
   IsValid = DecodeData();
 }
Exemplo n.º 2
0
 explicit DataDecoder(const Container& container)
   : IsValid(container.FastCheck())
   , Header(container.GetHeader())
   , Stream(Header.BitStream, fromLE(Header.SizeOfPacked))
   , Result(new Dump())
   , Decoded(*Result)
 {
   if (IsValid && !Stream.Eof())
   {
     IsValid = DecodeData();
   }
 }