|
|
@@ -279,10 +279,7 @@ static PyObject *Rocket_append_string(Rocket *self, PyObject *args) |
|
|
|
union64_t t64; |
|
|
|
int i; |
|
|
|
|
|
|
|
/* It would be nice to use 't#' instead of 's' for data, |
|
|
|
but we need the null termination for strto*. If we had |
|
|
|
strnto* that took a length, we could use t# and not require |
|
|
|
a copy. */ |
|
|
|
/* Input data is Unicode */ |
|
|
|
if (!PyArg_ParseTuple(args, "isiiLLL:append_string", &count, |
|
|
|
&data, &offset, &linenum, |
|
|
|
&ll1, &ll2, &ll3)) |
|
|
@@ -443,7 +440,7 @@ static PyObject *Rocket_append_binary(Rocket *self, PyObject *args) |
|
|
|
timestamp_t end; |
|
|
|
timestamp_t last_timestamp; |
|
|
|
|
|
|
|
if (!PyArg_ParseTuple(args, "it#iiLLL:append_binary", |
|
|
|
if (!PyArg_ParseTuple(args, "iy#iiLLL:append_binary", |
|
|
|
&count, &data, &data_len, &offset, |
|
|
|
&linenum, &ll1, &ll2, &ll3)) |
|
|
|
return NULL; |
|
|
@@ -493,7 +490,7 @@ static PyObject *Rocket_append_binary(Rocket *self, PyObject *args) |
|
|
|
} |
|
|
|
|
|
|
|
/**** |
|
|
|
* Extract to string |
|
|
|
* Extract to a Unicode string |
|
|
|
*/ |
|
|
|
|
|
|
|
static PyObject *Rocket_extract_string(Rocket *self, PyObject *args) |
|
|
@@ -601,7 +598,7 @@ err: |
|
|
|
} |
|
|
|
|
|
|
|
/**** |
|
|
|
* Extract to binary string containing raw little-endian binary data |
|
|
|
* Extract to binary bytes object containing raw little-endian binary data |
|
|
|
*/ |
|
|
|
static PyObject *Rocket_extract_binary(Rocket *self, PyObject *args) |
|
|
|
{ |
|
|
|