Class: XFS::DirectoryBlockTail

Inherits:
Object
  • Object
show all
Defined in:
lib/fs/xfs/directory_block_tail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DirectoryBlockTail

Returns a new instance of DirectoryBlockTail.



15
16
17
18
19
20
# File 'lib/fs/xfs/directory_block_tail.rb', line 15

def initialize(data)
  tail = DIRECTORY_BLOCK_TAIL.decode(data)
  @count = tail['count']
  @stale = tail['stale']
  @size  = SIZEOF_DIRECTORY_BLOCK_TAIL
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



13
14
15
# File 'lib/fs/xfs/directory_block_tail.rb', line 13

def count
  @count
end

#sizeObject (readonly)

Returns the value of attribute size.



13
14
15
# File 'lib/fs/xfs/directory_block_tail.rb', line 13

def size
  @size
end

#staleObject (readonly)

Returns the value of attribute stale.



13
14
15
# File 'lib/fs/xfs/directory_block_tail.rb', line 13

def stale
  @stale
end