public Group(KaitaiStream p__io, VlqBase128Be p__parent = null, VlqBase128Be p__root = null) : base(p__io)
 {
     m_parent  = p__parent;
     m_root    = p__root;
     f_hasNext = false;
     f_value   = false;
     _read();
 }
Example #2
0
            private void _read()
            {
                _lenPayload   = new VlqBase128Be(m_io);
                __raw_payload = m_io.ReadBytes(LenPayload.Value);
                var io___raw_payload = new KaitaiStream(__raw_payload);

                _payload = new CellPayload(io___raw_payload, this, m_root);
            }
 public VlqBase128Be(KaitaiStream p__io, KaitaiStruct p__parent = null, VlqBase128Be p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     f_last   = false;
     f_value  = false;
     _read();
 }
Example #4
0
            private void _read()
            {
                _lenHeaderAndLen    = new VlqBase128Be(m_io);
                __raw_columnSerials = m_io.ReadBytes((LenHeaderAndLen.Value - 1));
                var io___raw_columnSerials = new KaitaiStream(__raw_columnSerials);

                _columnSerials  = new Serials(io___raw_columnSerials, this, m_root);
                _columnContents = new List <ColumnContent>();
                for (var i = 0; i < ColumnSerials.Entries.Count; i++)
                {
                    _columnContents.Add(new ColumnContent(ColumnSerials.Entries[i], m_io, this, m_root));
                }
            }
Example #5
0
            private void _read()
            {
                _vTime       = new VlqBase128Be(m_io);
                _eventHeader = m_io.ReadU1();
                if (EventHeader == 255)
                {
                    _metaEventBody = new MetaEventBody(m_io, this, m_root);
                }
                if (EventHeader == 240)
                {
                    _sysexBody = new SysexEventBody(m_io, this, m_root);
                }
                switch (EventType)
                {
                case 224: {
                    _eventBody = new PitchBendEvent(m_io, this, m_root);
                    break;
                }

                case 144: {
                    _eventBody = new NoteOnEvent(m_io, this, m_root);
                    break;
                }

                case 208: {
                    _eventBody = new ChannelPressureEvent(m_io, this, m_root);
                    break;
                }

                case 192: {
                    _eventBody = new ProgramChangeEvent(m_io, this, m_root);
                    break;
                }

                case 160: {
                    _eventBody = new PolyphonicPressureEvent(m_io, this, m_root);
                    break;
                }

                case 176: {
                    _eventBody = new ControllerEvent(m_io, this, m_root);
                    break;
                }

                case 128: {
                    _eventBody = new NoteOffEvent(m_io, this, m_root);
                    break;
                }
                }
            }
Example #6
0
 private void _read()
 {
     _leftChildPage = m_io.ReadU4be();
     _rowId         = new VlqBase128Be(m_io);
 }
Example #7
0
 private void _read()
 {
     _code = new VlqBase128Be(m_io);
 }
Example #8
0
 private void _read()
 {
     _len  = new VlqBase128Be(m_io);
     _data = m_io.ReadBytes(Len.Value);
 }
Example #9
0
 private void _read()
 {
     _metaType = ((MetaTypeEnum)m_io.ReadU1());
     _len      = new VlqBase128Be(m_io);
     _body     = m_io.ReadBytes(Len.Value);
 }