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


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

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