private void _parse() { _seqTypeTag = m_io.EnsureFixedContents(new byte[] { 48 }); _len = new LenEncoded(m_io, this, m_root); _name = new AsnObj(m_io, this, m_root); _value = new AsnObj(m_io, this, m_root); }
private void _parse() { _requestId = new AsnObj(m_io, this, m_root); _errorStatus = new ErrorStatus(m_io, this, m_root); _errorIndex = new AsnObj(m_io, this, m_root); _variableBindings = new VariableBindings(m_io, this, m_root); }
private void _parse() { _hdr = new AsnHdr(m_io, this, m_root); _version = new AsnObj(m_io, this, m_root); _community = new AsnObj(m_io, this, m_root); _pduType = new AsnHdr(m_io, this, m_root); switch (PduType.Tag) { case AsnTypeTag.SnmpPduTrapv1: { _data = new Trap1(m_io, this, m_root); break; } case AsnTypeTag.SnmpPduTrapv2: { _data = new Trap2(m_io, this, m_root); break; } case AsnTypeTag.SnmpPduSet: { _data = new SetRequest(m_io, this, m_root); break; } case AsnTypeTag.SnmpPduResponse: { _data = new Response(m_io, this, m_root); break; } case AsnTypeTag.SnmpPduGet: { _data = new GetRequest(m_io, this, m_root); break; } case AsnTypeTag.SnmpPduGetnext: { _data = new GetNextRequest(m_io, this, m_root); break; } } }
public BodyPrintableString(KaitaiStream io, AsnObj parent = null, Snmp root = null) : base(io) { m_parent = parent; m_root = root; _parse(); }
public BodySequence(KaitaiStream io, AsnObj parent = null, Snmp root = null) : base(io) { m_parent = parent; m_root = root; _parse(); }