private void _read()
            {
                _key = new VlqBase128Le(m_io);
                switch (WireType)
                {
                case WireTypes.Varint: {
                    _value = new VlqBase128Le(m_io);
                    break;
                }

                case WireTypes.LenDelimited: {
                    _value = new DelimitedBytes(m_io, this, m_root);
                    break;
                }

                case WireTypes.Bit64: {
                    _value = m_io.ReadU8le();
                    break;
                }

                case WireTypes.Bit32: {
                    _value = m_io.ReadU4le();
                    break;
                }
                }
            }
Ejemplo n.º 2
0
 public Group(KaitaiStream p__io, VlqBase128Le p__parent = null, VlqBase128Le p__root = null) : base(p__io)
 {
     m_parent  = p__parent;
     m_root    = p__root;
     f_hasNext = false;
     f_value   = false;
     _read();
 }
 public VlqBase128Le(KaitaiStream p__io, KaitaiStruct p__parent = null, VlqBase128Le p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     f_len    = false;
     f_value  = false;
     _read();
 }
 private void _read()
 {
     _len  = new VlqBase128Le(m_io);
     _body = m_io.ReadBytes(Len.Value);
 }