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
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 28 def caching_type if self.vdo_caching == 1 && self.auto_caching == 0 :vdo elsif self.vdo_caching == 0 && self.auto_caching == 1 :auto elsif self.vdo_caching == 1 && self.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
51 52 53 54 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 51 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
43 44 45 46 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 43 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
67 68 69 70 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 67 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
59 60 61 62 |
# File 'lib/ruby_smb/smb2/bit_field/share_flags.rb', line 59 def set_vdo_caching self.vdo_caching = 1 self.auto_caching = 0 end |