void FindChannelLimits(uint64 mask, uint64 &HighestBit, uint64 &LowestBit)

Top  Previous  Next

This is an optimization helper.  During configuration, you can use this to pre-calculate the highest and lowest bit positions used in a data mask.  These are then passed to the pack routine each time you need to extract a given signal's data. You pass the datamask (from a channel select option) and references to the HighestBit and LowestBit variables.