class FFI::Pointer
def read_string(len=nil)
Experimental RBS support (using type sampling data from the type_fusion
project).
def read_string: (?Integer? len) -> String
This signature was generated using 791 samples from 5 applications.
-
(String)
-
Parameters:
-
len
(nil, Numeric
) -- length of string to return
def read_string(len=nil) if len return ''.b if len == 0 get_bytes(0, len) else get_string(0) end end unless method_defined?(:read_string)