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



350
351
352
353
354
355
356
357
358
# File 'lib/chef/win32/api/file.rb', line 350

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