How to declare a uctypes.ARRAY for a string? #15241
brianreinhold
started this conversation in
General
Replies: 1 comment
-
I think I found an answer to this: which means that I have to keep track of string lengths for those strings which are of variable lengths. The approach works but if someone has a better way I would be happy to know it! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
From the documentation I cannot tell why this unit test is failing on the first ARRAY declaration case:
I have tried this
and this
and they both give the same error
Line 53 is
phdinfo_struct.bt_addr = bytearray('04af11c3de90'.encode('utf-8'))
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions