Пример #1
0
 explicit DataDecoder(const Container& container)
   : IsValid(container.FastCheck())
   , Stream(container.GetStream())
 {
   if (IsValid)
   {
     IsValid = DecodeData();
   }
 }
Пример #2
0
 explicit Decoder(const Container& container)
   : IsValid(container.FastCheck())
   , Header(container.GetHeader())
   , Limit(container.GetSize())
   , Result(new Dump())
   , Decoded(*Result)
   , UsedSize(0)
 {
   IsValid = DecodeData();
 }
Пример #3
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();
   }
 }