1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 6c48610

Get rid of this from here. If you really think it is generally useful, please give is a more scary name and a proper test.

  • Participants
  • Parent commits 70cd7b4
  • Branches default

Comments (0)

Files changed (1)

File rpython/rtyper/lltypesystem/rffi.py

View file
             lltype.Void,
             releasegil=False
         )
-
-from rpython.rtyper.annlowlevel import llstr
-from rpython.rtyper.lltypesystem.rstr import STR
-
-def get_buffer_from_str(data):
-    lldata = llstr(data)
-    data_start = cast_ptr_to_adr(lldata) + \
-      offsetof(STR, 'chars') + itemoffsetof(STR.chars, 0)
-    return cast(CCHARP, data_start)