Class: Rex::Proto::MsDtyp::MsDtypLargeInteger

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/rex/proto/ms_dtyp.rb

Overview

Instance Method Summary collapse

Instance Method Details

#to_datetimeObject



772
773
774
# File 'lib/rex/proto/ms_dtyp.rb', line 772

def to_datetime
  RubySMB::Field::FileTime.new(to_i).to_datetime
end

#to_iObject



776
777
778
# File 'lib/rex/proto/ms_dtyp.rb', line 776

def to_i
  (high_part.to_i << 32) | low_part.to_i
end