Class: RubySMB::Dcerpc::Uuid
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- RubySMB::Dcerpc::Uuid
- Defined in:
- lib/ruby_smb/dcerpc/uuid.rb
Overview
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
13 14 15 |
# File 'lib/ruby_smb/dcerpc/uuid.rb', line 13 def get self.to_binary_s end |
#set(uuid_string) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/ruby_smb/dcerpc/uuid.rb', line 17 def set(uuid_string) components = uuid_string.split('-') self.time_low = components[0].hex self.time_mid = components[1].hex self.time_hi_and_version = components[2].hex self.clock_seq_hi_and_res = components[3].hex self.node = components[4].hex end |