@@ -19090,6 +19090,81 @@ SWIGINTERN PyObject *_wrap_SBData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObje
19090
19090
}
19091
19091
19092
19092
19093
+ SWIGINTERN PyObject *_wrap_SBData_SetDataWithOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19094
+ PyObject *resultobj = 0;
19095
+ lldb::SBData *arg1 = (lldb::SBData *) 0 ;
19096
+ lldb::SBError *arg2 = 0 ;
19097
+ void *arg3 = (void *) 0 ;
19098
+ size_t arg4 ;
19099
+ lldb::ByteOrder arg5 ;
19100
+ uint8_t arg6 ;
19101
+ void *argp1 = 0 ;
19102
+ int res1 = 0 ;
19103
+ void *argp2 = 0 ;
19104
+ int res2 = 0 ;
19105
+ int val5 ;
19106
+ int ecode5 = 0 ;
19107
+ unsigned char val6 ;
19108
+ int ecode6 = 0 ;
19109
+ PyObject *swig_obj[5] ;
19110
+
19111
+ if (!SWIG_Python_UnpackTuple(args, "SBData_SetDataWithOwnership", 5, 5, swig_obj)) SWIG_fail;
19112
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBData, 0 | 0 );
19113
+ if (!SWIG_IsOK(res1)) {
19114
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBData_SetDataWithOwnership" "', argument " "1"" of type '" "lldb::SBData *""'");
19115
+ }
19116
+ arg1 = reinterpret_cast< lldb::SBData * >(argp1);
19117
+ res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_lldb__SBError, 0 );
19118
+ if (!SWIG_IsOK(res2)) {
19119
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBData_SetDataWithOwnership" "', argument " "2"" of type '" "lldb::SBError &""'");
19120
+ }
19121
+ if (!argp2) {
19122
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBData_SetDataWithOwnership" "', argument " "2"" of type '" "lldb::SBError &""'");
19123
+ }
19124
+ arg2 = reinterpret_cast< lldb::SBError * >(argp2);
19125
+ {
19126
+ if (PythonString::Check(swig_obj[2])) {
19127
+ PythonString str(PyRefType::Borrowed, swig_obj[2]);
19128
+ arg3 = (void*)str.GetString().data();
19129
+ arg4 = str.GetSize();
19130
+ }
19131
+ else if(PythonByteArray::Check(swig_obj[2])) {
19132
+ PythonByteArray bytearray(PyRefType::Borrowed, swig_obj[2]);
19133
+ arg3 = (void*)bytearray.GetBytes().data();
19134
+ arg4 = bytearray.GetSize();
19135
+ }
19136
+ else if (PythonBytes::Check(swig_obj[2])) {
19137
+ PythonBytes bytes(PyRefType::Borrowed, swig_obj[2]);
19138
+ arg3 = (void*)bytes.GetBytes().data();
19139
+ arg4 = bytes.GetSize();
19140
+ }
19141
+ else {
19142
+ PyErr_SetString(PyExc_ValueError, "Expecting a buffer");
19143
+ return NULL;
19144
+ }
19145
+ }
19146
+ ecode5 = SWIG_AsVal_int(swig_obj[3], &val5);
19147
+ if (!SWIG_IsOK(ecode5)) {
19148
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SBData_SetDataWithOwnership" "', argument " "5"" of type '" "lldb::ByteOrder""'");
19149
+ }
19150
+ arg5 = static_cast< lldb::ByteOrder >(val5);
19151
+ ecode6 = SWIG_AsVal_unsigned_SS_char(swig_obj[4], &val6);
19152
+ if (!SWIG_IsOK(ecode6)) {
19153
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SBData_SetDataWithOwnership" "', argument " "6"" of type '" "uint8_t""'");
19154
+ }
19155
+ arg6 = static_cast< uint8_t >(val6);
19156
+ {
19157
+ SWIG_PYTHON_THREAD_BEGIN_ALLOW;
19158
+ (arg1)->SetDataWithOwnership(*arg2,(void const *)arg3,arg4,arg5,arg6);
19159
+ SWIG_PYTHON_THREAD_END_ALLOW;
19160
+ }
19161
+ resultobj = SWIG_Py_Void();
19162
+ return resultobj;
19163
+ fail:
19164
+ return NULL;
19165
+ }
19166
+
19167
+
19093
19168
SWIGINTERN PyObject *_wrap_SBData_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19094
19169
PyObject *resultobj = 0;
19095
19170
lldb::SBData *arg1 = (lldb::SBData *) 0 ;
@@ -82267,6 +82342,7 @@ static PyMethodDef SwigMethods[] = {
82267
82342
{ "SBData_GetDescription", _wrap_SBData_GetDescription, METH_VARARGS, "SBData_GetDescription(SBData self, SBStream description, lldb::addr_t base_addr) -> bool"},
82268
82343
{ "SBData_ReadRawData", _wrap_SBData_ReadRawData, METH_VARARGS, "SBData_ReadRawData(SBData self, SBError error, lldb::offset_t offset, void * buf) -> size_t"},
82269
82344
{ "SBData_SetData", _wrap_SBData_SetData, METH_VARARGS, "SBData_SetData(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)"},
82345
+ { "SBData_SetDataWithOwnership", _wrap_SBData_SetDataWithOwnership, METH_VARARGS, "SBData_SetDataWithOwnership(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)"},
82270
82346
{ "SBData_Append", _wrap_SBData_Append, METH_VARARGS, "SBData_Append(SBData self, SBData rhs) -> bool"},
82271
82347
{ "SBData_CreateDataFromCString", _wrap_SBData_CreateDataFromCString, METH_VARARGS, "SBData_CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData"},
82272
82348
{ "SBData_CreateDataFromUInt64Array", _wrap_SBData_CreateDataFromUInt64Array, METH_VARARGS, "SBData_CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData"},
0 commit comments