Searched refs:typeargs (Results 1 – 7 of 7) sorted by relevance
/thrift-3.4.0/lib/py/src/ext/ |
D | types.cpp | 54 dest->typeargs = PyTuple_GET_ITEM(spec_tuple, 3); in parse_struct_item_spec() 59 bool parse_set_list_args(SetListTypeArgs* dest, PyObject* typeargs) { in parse_set_list_args() argument 60 if (PyTuple_Size(typeargs) != 3) { in parse_set_list_args() 65 dest->element_type = static_cast<TType>(PyInt_AsLong(PyTuple_GET_ITEM(typeargs, 0))); in parse_set_list_args() 70 dest->typeargs = PyTuple_GET_ITEM(typeargs, 1); in parse_set_list_args() 72 dest->immutable = Py_True == PyTuple_GET_ITEM(typeargs, 2); in parse_set_list_args() 77 bool parse_map_args(MapTypeArgs* dest, PyObject* typeargs) { in parse_map_args() argument 78 if (PyTuple_Size(typeargs) != 5) { in parse_map_args() 83 dest->ktag = static_cast<TType>(PyInt_AsLong(PyTuple_GET_ITEM(typeargs, 0))); in parse_map_args() 88 dest->vtag = static_cast<TType>(PyInt_AsLong(PyTuple_GET_ITEM(typeargs, 2))); in parse_map_args() [all …]
|
D | types.h | 143 PyObject* typeargs; member 177 PyObject* typeargs; member 181 bool parse_set_list_args(SetListTypeArgs* dest, PyObject* typeargs); 183 bool parse_map_args(MapTypeArgs* dest, PyObject* typeargs); 185 bool parse_struct_args(StructTypeArgs* dest, PyObject* typeargs);
|
D | protocol.tcc | 76 inline bool ProtocolBase<Impl>::isUtf8(PyObject* typeargs) { in isUtf8() argument 77 return PyString_Check(typeargs) && !strncmp(PyString_AS_STRING(typeargs), "UTF8", 4); in isUtf8() 160 inline bool ProtocolBase<Impl>::isUtf8(PyObject* typeargs) { 163 return !PyUnicode_Check(typeargs) || PyUnicode_GET_LENGTH(typeargs) != 6; 339 bool ProtocolBase<Impl>::encodeValue(PyObject* value, TType type, PyObject* typeargs) { in encodeValue() argument 445 if (!parse_set_list_args(&parsedargs, typeargs)) { in encodeValue() 464 if (!encodeValue(item.get(), parsedargs.element_type, parsedargs.typeargs)) { in encodeValue() 479 if (!parse_map_args(&parsedargs, typeargs)) { in encodeValue() 501 if (!parse_struct_args(&parsedargs, typeargs)) { in encodeValue() 644 PyObject* ProtocolBase<Impl>::decodeValue(TType type, PyObject* typeargs) { in decodeValue() argument [all …]
|
D | protocol.h | 47 bool encodeValue(PyObject* value, TType type, PyObject* typeargs); 73 PyObject* decodeValue(TType type, PyObject* typeargs); 80 inline bool isUtf8(PyObject* typeargs);
|
D | module.cpp | 84 PyObject* typeargs = nullptr; in decode_impl() local 85 if (!PyArg_ParseTuple(args, "OOO", &output_obj, &oprot, &typeargs)) { in decode_impl() 103 if (!parse_struct_args(&parsedargs, typeargs)) { in decode_impl()
|
D | binary.h | 88 return encodeValue(value, parsedspec.type, parsedspec.typeargs); in writeField()
|
D | compact.h | 100 return encodeValue(value, spec.type, spec.typeargs); in writeField()
|