Пример #1
0
            private void _read()
            {
                _icflag = new Icflag(m_io, this, m_root);
                switch (Icflag.Type)
                {
                case Specpr.RecordType.DataInitial: {
                    __raw_content = m_io.ReadBytes((1536 - 4));
                    var io___raw_content = new KaitaiStream(__raw_content);
                    _content = new DataInitial(io___raw_content, this, m_root);
                    break;
                }

                case Specpr.RecordType.DataContinuation: {
                    __raw_content = m_io.ReadBytes((1536 - 4));
                    var io___raw_content = new KaitaiStream(__raw_content);
                    _content = new DataContinuation(io___raw_content, this, m_root);
                    break;
                }

                case Specpr.RecordType.TextContinuation: {
                    __raw_content = m_io.ReadBytes((1536 - 4));
                    var io___raw_content = new KaitaiStream(__raw_content);
                    _content = new TextContinuation(io___raw_content, this, m_root);
                    break;
                }

                case Specpr.RecordType.TextInitial: {
                    __raw_content = m_io.ReadBytes((1536 - 4));
                    var io___raw_content = new KaitaiStream(__raw_content);
                    _content = new TextInitial(io___raw_content, this, m_root);
                    break;
                }

                default: {
                    _content = m_io.ReadBytes((1536 - 4));
                    break;
                }
                }
            }
Пример #2
0
 void DebugN1_FileNext(Peer peer, DataContinuation continuation, WaitDataInfo waitDataInfo)
 {
 }