Class: RubySMB::Dcerpc::Ndr::NdrContextHandle
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- RubySMB::Dcerpc::Ndr::NdrContextHandle
- Defined in:
- lib/ruby_smb/dcerpc/ndr.rb
Overview
An NDR Context Handle representation as defined in IDL Data Type Declarations - Basic Type Declarations
Direct Known Subclasses
Drsr::DrsHandle, Samr::SamprHandle, Svcctl::ScRpcHandle, Winreg::PrpcHkey, Winreg::RpcHkey
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
1228 1229 1230 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 1228 def get {:context_handle_attributes => context_handle_attributes, :context_handle_uuid => context_handle_uuid} end |
#set(handle) ⇒ Object
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 |
# File 'lib/ruby_smb/dcerpc/ndr.rb', line 1232 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 |