Commit 01f37c1c authored by Carl Friedrich Bolz-Tereick's avatar Carl Friedrich Bolz-Tereick
Browse files

merge heads

--HG--
branch : py3.7
Pipeline #21715 passed with stage
in 7 minutes and 15 seconds
......@@ -333,6 +333,12 @@ class ByteBuffer(GCBuffer):
def _get_gc_data_offset():
return get_gc_data_offset_for_list_of_chars()
def setslice(self, start, string):
# this could maybe be done with a memcopy, but at least make sure there
# is no virtual method call in the loop here!
data = self.data
for i in range(len(string)):
data[start + i] = string[i]
@GCBuffer.decorate
class StringBuffer(GCBuffer):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment