Debian Codegraph @

pypy/module/__pypy__/bytebuffer.py

raw symbols SCIP
1 #
2 # A convenient read-write buffer. Located here for want of a better place.
3 #
4
5 from rpython.rlib.buffer import ByteBuffer
6
7 from pypy.interpreter.buffer import SimpleView
8 from pypy.interpreter.gateway import unwrap_spec
9
10 @unwrap_spec(length=int)
11 def bytebuffer(space, length):
12 return SimpleView(ByteBuffer(length)).wrap(space)