Replies: 1 comment 1 reply
-
I found that i could use the following syntax and it enabled me to make a direct assignment
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am trying to create a uctype structure in memory containing an array. But it seems the only way I can write values to this array is by indexing each element separately.
I had hoped I could assign it with a byte array like this.
my_struct.Value = bytearray([1,2,3,4,5,6])
However, this gives me an error. It seems I'm only able to assign values by indexing the source also
Is this correct understood or have I made an error? I would prefer I could assign it directly
I have no problem assigning a value directly to "Value2"
Regards
Beta Was this translation helpful? Give feedback.
All reactions