Object
VALUE rb_str_to_ptr(VALUE self) { char *ptr; int len; VALUE p; len = RSTRING(self)->len; ptr = (char*)dlmalloc(len + 1); memcpy(ptr, RSTRING(self)->ptr, len); ptr[len] = '\0'; p = rb_dlptr_new((void*)ptr,len,dlfree); OBJ_INFECT(p, self); return p; }
This page was generated for Ruby 1.8.6
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.0.