Class: RubySMB::SMB2::BitField::ShareFlags
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::SMB2::BitField::ShareFlags
- Defined in:
- lib/ruby_smb/smb2/bit_field/share_flags.rb
Overview
A Share Flags BitField Mask as defined in 2.2.10 SMB2 TREE_CONNECT Response
Instance Method Summary collapse
- #caching_type ⇒ Object
-
#set_auto_caching ⇒ void
Sets the Bit Mask for Auto Caching.
-
#set_manual_caching ⇒ void
Sets the Bit Mask for Manual Caching.
-
#set_no_caching ⇒ void
Sets the Bit Mask for No Caching.
-
#set_vdo_caching ⇒ void
Sets the Bit Mask for VDO Caching.
Instance Method Details
#caching_type ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 29 def caching_type if vdo_caching == 1 && auto_caching.zero? :vdo elsif vdo_caching.zero? && auto_caching == 1 :auto elsif vdo_caching == 1 && auto_caching == 1 :no_caching else :manual end end |
#set_auto_caching ⇒ void
This method returns an undefined value.
Sets the Bit Mask for Auto Caching
52 53 54 55 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 52 def set_auto_caching self.vdo_caching = 0 self.auto_caching = 1 end |
#set_manual_caching ⇒ void
This method returns an undefined value.
Sets the Bit Mask for Manual Caching
44 45 46 47 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 44 def set_manual_caching self.vdo_caching = 0 self.auto_caching = 0 end |
#set_no_caching ⇒ void
This method returns an undefined value.
Sets the Bit Mask for No Caching
68 69 70 71 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 68 def set_no_caching self.vdo_caching = 1 self.auto_caching = 1 end |
#set_vdo_caching ⇒ void
This method returns an undefined value.
Sets the Bit Mask for VDO Caching
60 61 62 63 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 60 def set_vdo_caching self.vdo_caching = 1 self.auto_caching = 0 end |