-
- Downloads
Implement a cast mechanism that minimize number of word subdivision
If T is a given type. It is decomposed into small pieces of integer words to define messages. For instance, if T size is Byte then it will be decomposed into one int8 (no decomposition just a reinterpret_cast). If T is 2Bytes -> int16, and so on. It sizeof(T) is not exactly 1,2,4 or 8, then the cast (sub)type will be the one whose size is the greatest (exact) divisor of the size of T. The CastArray<InitialType, CastType> will ensure data size consistency when transferring arrays.
Loading
Please register or sign in to comment