Example #1
0
 public Dcmp2(uint p_lenDecompressed, BytesWithIo p_headerParametersWithIo, KaitaiStream p__io, KaitaiStruct p__parent = null, Dcmp2 p__root = null) : base(p__io)
 {
     m_parent                = p__parent;
     m_root                  = p__root ?? this;
     _lenDecompressed        = p_lenDecompressed;
     _headerParametersWithIo = p_headerParametersWithIo;
     f_headerParameters      = false;
     f_isLenDecompressedOdd  = false;
     f_defaultLookupTable    = false;
     f_lookupTable           = false;
     _read();
 }
Example #2
0
                private void _read()
                {
                    _format    = new Format(m_io, this, m_root);
                    _numGlyphs = m_io.ReadU4le();
                    _names     = new List <StringRef>();
                    for (var i = 0; i < NumGlyphs; i++)
                    {
                        _names.Add(new StringRef(m_io, this, m_root));
                    }
                    _lenStrings   = m_io.ReadU4le();
                    __raw_strings = m_io.ReadBytes(LenStrings);
                    var io___raw_strings = new KaitaiStream(__raw_strings);

                    _strings = new BytesWithIo(io___raw_strings);
                }
Example #3
0
                private void _read()
                {
                    _format   = new Format(m_io, this, m_root);
                    _numProps = m_io.ReadU4le();
                    _props    = new List <Prop>();
                    for (var i = 0; i < NumProps; i++)
                    {
                        _props.Add(new Prop(m_io, this, m_root));
                    }
                    _padding      = m_io.ReadBytes(((NumProps & 3) == 0 ? 0 : (4 - (NumProps & 3))));
                    _lenStrings   = m_io.ReadU4le();
                    __raw_strings = m_io.ReadBytes(LenStrings);
                    var io___raw_strings = new KaitaiStream(__raw_strings);

                    _strings = new BytesWithIo(io___raw_strings);
                }