Class: Chef::ReservedNames::Win32::API::File::REPARSE_DATA_BUFFER

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/chef/win32/api/file.rb

Instance Method Summary collapse

Instance Method Details

#reparse_bufferObject



339
340
341
342
343
344
345
346
347
# File 'lib/chef/win32/api/file.rb', line 339

def reparse_buffer
  if self[:ReparseTag] == IO_REPARSE_TAG_SYMLINK
    self[:ReparseBuffer][:SymbolicLinkReparseBuffer]
  elsif self[:ReparseTag] == IO_REPARSE_TAG_MOUNT_POINT
    self[:ReparseBuffer][:MountPointReparseBuffer]
  else
    self[:ReparseBuffer][:GenericReparseBuffer]
  end
end