Method: ReservedNames::Win32::Memory.local_realloc
- Defined in:
- lib/chef/win32/memory.rb
.local_realloc(pointer, size, flags = LMEM_MOVEABLE | LMEM_ZEROINIT) ⇒ Object
local_realloc(pointer, size[, flags]) Resizes memory allocated using LocalAlloc.
77 78 79 80 81 82 83 |
# File 'lib/chef/win32/memory.rb', line 77 def self.local_realloc(pointer, size, flags = LMEM_MOVEABLE | LMEM_ZEROINIT) result = LocalReAlloc(pointer, size, flags) if result.null? Chef::ReservedNames::Win32::Error.raise! end result end |