blob: a2bbac7073c876d5731c7f3fc25026e042ebe129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
%{
#include "treekey.h"
%}
%ignore sword::TreeKey::getUserData(int *);
%ignore sword::TreeKey::setUserData(const char *, int);
%include <carrays.i>
//%pointer_class(unsigned char, BytePointer);
//%array_class(unsigned char, ByteArray);
%include "treekey.h"
%extend sword::TreeKey {
static sword::TreeKey *castTo(sword::SWKey *o) {
return dynamic_cast<sword::TreeKey*>(o);
}
}
/*
%extend sword::TreeKey {
const unsigned char *getUserData2() {
return (const unsigned char*)(self->getUserData(0));
}
int getUserDataSize() {
int s;
self->getUserData(&s);
return s;
}
void setUserData(unsigned char data[], int size) {
self->setUserData(((const char*)(data)), size);
}
};
*/
|