Re: Reserving binary Buffer for struct.pack_into() of exact length

2010-03-19 Thread Emile van Sebille
On 3/19/2010 11:46 AM Hans Müller said... Hello, I need some buffers, which are beeing concatenated an then send via the socket() function. My problem is that create_string_buffer() creates a buffer which ist one byte too long (for a \0 char). But when I concatenate some of these buffers to a lo

Reserving binary Buffer for struct.pack_into() of exact length

2010-03-19 Thread Hans Müller
Hello, I need some buffers, which are beeing concatenated an then send via the socket() function. My problem is that create_string_buffer() creates a buffer which ist one byte too long (for a \0 char). But when I concatenate some of these buffers to a long one to be transfered, the extra byte