class FFI::Pointer

def write_string_length(str, len)

Returns:
  • (self) -

Parameters:
  • len (Integer) -- length of string to return
  • str (String) -- string to write
def write_string_length(str, len)
  put_bytes(0, str, 0, len)
end unless method_defined?(:write_string_length)