Datatype and conversion method for sequence number and flags int struct