Class: FFI::Pointer
- Inherits:
-
Object
- Object
- FFI::Pointer
- Defined in:
- lib/win32/windows/helper.rb
Instance Method Summary collapse
Instance Method Details
#read_array_of_null_separated_strings ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/win32/windows/helper.rb', line 4 def read_array_of_null_separated_strings elements = [] loc = self while element = loc.read_string break if element.nil? || element == "" elements << element loc += element.size + 1 end elements end |