[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: SIP translation of unsigned char array of size 1 in struct
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2021-02-17 13:10:40
Message-ID: cece62b02a2f7e4d025bec1be6c89f89 () riverbankcomputing ! com
[Download RAW message or body]
On 17/02/2021 12:53, Marian Thomsen wrote:
> Hello,
>
> I have difficulties translating this type of array inside a struct. It
> is the destination of a memcopy operation.
>
> struct Test {
> unsigned char data[1];
>
> ...
>
> Test();
> Test( ... );
> };
>
> Unfortunately I cannot touch the c++ headerfile.
>
> What would be a good approach?
>
> Thank you in advance!
>
> M.T.
SIP doesn't (yet) support fixed size arrays. However in this particular
case just use 'unsigned char data'.
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic