Skip to content

Commit f5c401b

Browse files
committed
Yarddocs
1 parent 76f0783 commit f5c401b

File tree

1 file changed

+7
-0
lines changed
  • lib/rex/post/meterpreter/extensions/stdapi/railgun

1 file changed

+7
-0
lines changed

lib/rex/post/meterpreter/extensions/stdapi/railgun/util.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ def read_wstring(pointer, length = nil)
375375
return str
376376
end
377377

378+
#
379+
# Reads null-terminated ASCII strings from memory.
380+
#
381+
# Given a pointer to a null terminated array of CHARs, return a ruby
382+
# String. If +pointer+ is NULL (see #is_null_pointer) returns an empty
383+
# string.
384+
#
378385
def read_string(pointer, length=nil)
379386
if is_null_pointer(pointer)
380387
return ''

0 commit comments

Comments
 (0)