2727
2828/******************************************************************************/
2929
30- // container_count, sort_keys, no_float32, uint8_bytes, islittle
31- static _bjdata_encoder_prefs_t _bjdata_encoder_prefs_defaults = { NULL , 0 , 0 , 1 , 0 , 1 };
30+ // container_count, sort_keys, no_float32, islittle, uint8_bytes
31+ static _bjdata_encoder_prefs_t _bjdata_encoder_prefs_defaults = { NULL , 0 , 0 , 1 , 1 , 0 };
3232
33- // no_bytes, uint8_bytes, object_pairs_hook, islittle
34- static _bjdata_decoder_prefs_t _bjdata_decoder_prefs_defaults = { NULL , NULL , 0 , 0 , 0 , 1 };
33+ // no_bytes, object_pairs_hook, islittle, uint8_bytes
34+ static _bjdata_decoder_prefs_t _bjdata_decoder_prefs_defaults = { NULL , NULL , 0 , 0 , 1 , 0 };
3535
3636/******************************************************************************/
3737
3838PyDoc_STRVAR (_bjdata_dump__doc__ , "See pure Python version (encoder.dump) for documentation." );
3939#define FUNC_DEF_DUMP {"dump", (PyCFunction)_bjdata_dump, METH_VARARGS | METH_KEYWORDS, _bjdata_dump__doc__}
4040static PyObject *
4141_bjdata_dump (PyObject * self , PyObject * args , PyObject * kwargs ) {
42- static const char * format = "OO|iiiiO :dump" ;
43- static char * keywords [] = {"obj" , "fp" , "container_count" , "sort_keys" , "no_float32" , "islittle" , "default" , NULL };
42+ static const char * format = "OO|iiiiiO :dump" ;
43+ static char * keywords [] = {"obj" , "fp" , "container_count" , "sort_keys" , "no_float32" , "islittle" , "uint8_bytes" , " default" , NULL };
4444
4545 _bjdata_encoder_buffer_t * buffer = NULL ;
4646 _bjdata_encoder_prefs_t prefs = _bjdata_encoder_prefs_defaults ;
@@ -50,7 +50,7 @@ _bjdata_dump(PyObject *self, PyObject *args, PyObject *kwargs) {
5050 UNUSED (self );
5151
5252 if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & obj , & fp , & prefs .container_count ,
53- & prefs .sort_keys , & prefs .no_float32 , & prefs .islittle , & prefs .default_func )) {
53+ & prefs .sort_keys , & prefs .no_float32 , & prefs .islittle , & prefs .uint8_bytes , & prefs . default_func )) {
5454 goto bail ;
5555 }
5656 BAIL_ON_NULL (fp_write = PyObject_GetAttrString (fp , "write" ));
@@ -73,16 +73,16 @@ PyDoc_STRVAR(_bjdata_dumpb__doc__, "See pure Python version (encoder.dumpb) for
7373#define FUNC_DEF_DUMPB {"dumpb", (PyCFunction)_bjdata_dumpb, METH_VARARGS | METH_KEYWORDS, _bjdata_dumpb__doc__}
7474static PyObject *
7575_bjdata_dumpb (PyObject * self , PyObject * args , PyObject * kwargs ) {
76- static const char * format = "O|iiiiO :dumpb" ;
77- static char * keywords [] = {"obj" , "container_count" , "sort_keys" , "no_float32" , "islittle" , "default" , NULL };
76+ static const char * format = "O|iiiiiO :dumpb" ;
77+ static char * keywords [] = {"obj" , "container_count" , "sort_keys" , "no_float32" , "islittle" , "uint8_bytes" , " default" , NULL };
7878
7979 _bjdata_encoder_buffer_t * buffer = NULL ;
8080 _bjdata_encoder_prefs_t prefs = _bjdata_encoder_prefs_defaults ;
8181 PyObject * obj ;
8282 UNUSED (self );
8383
8484 if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & obj , & prefs .container_count , & prefs .sort_keys ,
85- & prefs .no_float32 , & prefs .islittle , & prefs .default_func )) {
85+ & prefs .no_float32 , & prefs .islittle , & prefs .uint8_bytes , & prefs . default_func )) {
8686 goto bail ;
8787 }
8888
@@ -103,8 +103,8 @@ PyDoc_STRVAR(_bjdata_load__doc__, "See pure Python version (encoder.load) for do
103103#define FUNC_DEF_LOAD {"load", (PyCFunction)_bjdata_load, METH_VARARGS | METH_KEYWORDS, _bjdata_load__doc__}
104104static PyObject *
105105_bjdata_load (PyObject * self , PyObject * args , PyObject * kwargs ) {
106- static const char * format = "O|iOOii :load" ;
107- static char * keywords [] = {"fp" , "uint8_bytes " , "object_hook" , "object_pairs_hook" , "intern_object_keys" , "islittle" , NULL };
106+ static const char * format = "O|iOOiii :load" ;
107+ static char * keywords [] = {"fp" , "no_bytes " , "object_hook" , "object_pairs_hook" , "intern_object_keys" , "islittle" , "uint8_bytes " , NULL };
108108
109109 _bjdata_decoder_buffer_t * buffer = NULL ;
110110 _bjdata_decoder_prefs_t prefs = _bjdata_decoder_prefs_defaults ;
@@ -115,8 +115,8 @@ _bjdata_load(PyObject *self, PyObject *args, PyObject *kwargs) {
115115 PyObject * obj = NULL ;
116116 UNUSED (self );
117117
118- if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & fp , & prefs .uint8_bytes , & prefs .object_hook ,
119- & prefs .object_pairs_hook , & prefs .intern_object_keys , & prefs .islittle )) {
118+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & fp , & prefs .no_bytes , & prefs .object_hook ,
119+ & prefs .object_pairs_hook , & prefs .intern_object_keys , & prefs .islittle , & prefs . uint8_bytes )) {
120120 goto bail ;
121121 }
122122
@@ -158,17 +158,17 @@ PyDoc_STRVAR(_bjdata_loadb__doc__, "See pure Python version (encoder.loadb) for
158158#define FUNC_DEF_LOADB {"loadb", (PyCFunction)_bjdata_loadb, METH_VARARGS | METH_KEYWORDS, _bjdata_loadb__doc__}
159159static PyObject *
160160_bjdata_loadb (PyObject * self , PyObject * args , PyObject * kwargs ) {
161- static const char * format = "O|iOOii :loadb" ;
162- static char * keywords [] = {"chars" , "uint8_bytes " , "object_hook" , "object_pairs_hook" , "intern_object_keys" , "islittle" , NULL };
161+ static const char * format = "O|iOOiii :loadb" ;
162+ static char * keywords [] = {"chars" , "no_bytes " , "object_hook" , "object_pairs_hook" , "intern_object_keys" , "islittle" , "uint8_bytes " , NULL };
163163
164164 _bjdata_decoder_buffer_t * buffer = NULL ;
165165 _bjdata_decoder_prefs_t prefs = _bjdata_decoder_prefs_defaults ;
166166 PyObject * chars ;
167167 PyObject * obj = NULL ;
168168 UNUSED (self );
169169
170- if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & chars , & prefs .uint8_bytes , & prefs .object_hook ,
171- & prefs .object_pairs_hook , & prefs .intern_object_keys , & prefs .islittle )) {
170+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , format , keywords , & chars , & prefs .no_bytes , & prefs .object_hook ,
171+ & prefs .object_pairs_hook , & prefs .intern_object_keys , & prefs .islittle , & prefs . uint8_bytes )) {
172172 goto bail ;
173173 }
174174 if (PyUnicode_Check (chars )) {
0 commit comments