Class: RubySMB::Dcerpc::Ndr::NdrContextHandle
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- RubySMB::Dcerpc::Ndr::NdrContextHandle
show all
- Defined in:
- lib/ruby_smb/dcerpc/ndr.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#get ⇒ Object
78
79
80
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 78
def get
{:context_handle_attributes => context_handle_attributes, :context_handle_uuid => context_handle_uuid}
end
|
#set(handle) ⇒ Object
82
83
84
85
86
87
88
89
90
91
|
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 82
def set(handle)
if handle.is_a?(Hash)
self.context_handle_attributes = handle[:context_handle_attributes]
self.context_handle_uuid = handle[:context_handle_uuid]
elsif handle.is_a?(NdrContextHandle)
read(handle.to_binary_s)
else
read(handle.to_s)
end
end
|