Representing a 16 byte variable

Posted by Bobby on Stack Overflow See other posts from Stack Overflow or by Bobby
Published on 2010-05-14T14:45:43Z Indexed on 2010/05/14 15:04 UTC
Read the original article Hit count: 403

Filed under:

I have to represent a 16 byte field as part of a data structure:

struct Data_Entry
{
    uint8   CUI_Type;
    uint8   CUI_Size;
    uint16  Src_Refresh_Period;
    uint16  Src_Buffer_Size;
    uint16  Src_CUI_Offset;
    uint32  Src_BCW_Address;
    uint32  Src_Previous_Timestamp;
    /* The field below should be a 16 byte field */
    uint32      Data;

};

How would I represent the "Data" field as a 16 byte field instead of the 4 byte field it currently is?

Thanks,

Bobby

© Stack Overflow or respective owner

Related posts about c++