netstruct icon indicating copy to clipboard operation
netstruct copied to clipboard

Support 's' format

Open timolson opened this issue 5 years ago • 0 comments

I want to embed UUID's in my byte stream and used '16s' for that format, which is supported by struct, but netstruct complains about an unsupported format character. Other possible formats such as 'c' or 'B' return integers not a bytes object, which is what I need for deserialization back into a UUID. The only way I see to do what I want is to split my bytes by-hand and do partial parsing with netstruct and partial parsing on my own.

timolson avatar May 02 '20 19:05 timolson