Class: TurboRex::MSRPC::RPCBase::MIDL_STUBLESS_PROXY_INFO_Klass

Inherits:
Structures_Klass
  • Object
show all
Defined in:
lib/turborex/msrpc/rpcbase.rb

Instance Attribute Summary

Attributes inherited from Structures_Klass

#xrefs

Instance Method Summary collapse

Methods inherited from Structures_Klass

#[], #initialize, #link_and_xref, #method_missing, #to_s, #xref_from

Constructor Details

This class inherits a constructor from TurboRex::MSRPC::RPCBase::Structures_Klass

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TurboRex::MSRPC::RPCBase::Structures_Klass

Instance Method Details



722
723
724
725
726
727
728
729
# File 'lib/turborex/msrpc/rpcbase.rb', line 722

def link_to(struct)
  case struct
  when MIDL_STUB_DESC_Klass
    link_and_xref :stub_desc_link_to, struct
  when MIDL_SYNTAX_INFO_Klass
    link_and_xref :syntax_info_link_to, struct
  end
end

#parse_struct(cstruct) ⇒ Object



707
708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/turborex/msrpc/rpcbase.rb', line 707

def parse_struct(cstruct)
  @value_table = {
    pStubDesc: cstruct['pStubDesc'].value,
    ProcFormatString: cstruct['procFormatString'].value,
    FormatStringOffset: cstruct['formatStringOffset'].value,
    pTransferSyntax: cstruct['pTransferSyntax'].value,
    nCount: cstruct['nCount'].value,
    pSyntaxInfo: cstruct['pSyntaxInfo'].value
  }

  @stub_desc_link_to = nil
  @syntax_info_link_to = nil
  @transfer_syntax_link_to = nil
end