class TurboRex::MSRPC::RPCBase::RPC_SYNTAX_IDENTIFIER_Klass
Attributes
type[RW]
Public Instance Methods
SyntaxGUID()
click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 474 def SyntaxGUID @syntax_guid_link_to || @value_table[:SyntaxGUID] end
SyntaxVersion()
click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 478 def SyntaxVersion @syntax_version_link_to || @value_table[:SyntaxVersion] end
link_to(struct)
click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 482 def link_to(struct) case struct when GUID_Klass link_and_xref :syntax_guid_link_to, struct when RPC_VERSION_Klass link_and_xref :syntax_version_link_to, struct end end
parse_struct(cstruct)
click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 456 def parse_struct(cstruct) @value_table = { SyntaxGUID: cstruct['syntaxGUID'].to_s, SyntaxVersion:cstruct['syntaxVersion'].to_s } @type = :interface_id guid = @value_table[:SyntaxGUID] if guid == DCE_TransferSyntax.to_s || guid == NDR64_TransferSyntax.to_s @type = :transfer_syntax end @syntax_guid_link_to = GUID_Klass.new(cstruct['syntaxGUID']) @syntax_version_link_to = RPC_VERSION_Klass.new(cstruct['syntaxVersion']) true end