I have a type that is defined with a member
content_len : int32
I am matching binary data structure in which this field is populated and then used to extract another bitstring via:
content : content_len * 8 : bitstring;
but I get the error:
Error: This expression has type int32 but an expression was expected of type int
Is the bitstring library limited to using a length of type int or am I doing something else wrong?
Thanks,
Brian