|
From: | Michael Dickens |
Subject: | Re: [Discuss-gnuradio] swig question |
Date: | Thu, 24 May 2007 21:06:59 -0400 |
On May 24, 2007, at 8:07 PM, Brett L. Trotter wrote:
Traceback (most recent call last): File "./test.py", line 18, in ? main() File "./test.py", line 15, in main encode_rs_char(rs_handle, teststr, paritystr)TypeError: in method 'encode_rs_char', argument 2 of type 'unsigned char *'so what can I pass it?
I think you'll need to pass "const std::vector<char> &" since C++, SWIG, and Python all know what this is [a reference to a std::vector of chars, that cannot be modified by the receiving function]. That works for other blocks used in GNU Radio, IIRC. - MLD
[Prev in Thread] | Current Thread | [Next in Thread] |