Accessing elements from Construct structures only

16 views
Skip to first unread message

Adrian Tarniceru

unread,
Jul 15, 2021, 9:37:45 AM7/15/21
to Construct
Hello!

I have the following code:

import construct as ct

featureId = ct.Byte[3]
featureId.parse(b'\x00\x00\x02')

and I am concerned about how can I access let say the second byte from the featureId only, after it was parsed. I really can't understand.

Sincerelly

Adrian T.
Reply all
Reply to author
Forward
0 new messages