I'm writing a comms interface. The problem I've got is that the data is coming in as a stream of bytes, which I store in an array. After examining bytes 2 and 3, I know what type of record it is. How do I now cast or copy this array to a record?
I tried using unchecked_conversion but it doesn't like variable sized arrays.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.