Can someone convert this C struct to delphi as in record?
typedef struct {
Uint16 addr2:8;
Uint16 addr1:8;
Uint16 addr4:8;
Uint16 addr3:8;
Uint16 addr6:8;
Uint16 addr5:8;
}MY_ADDR;
I tried it out myslef. But i couldn't figure out how to deal with addr2:8 (:8) issue.
MY_ADDR = record
addr2:8 : Uint16;
addr1:8 : Uint16;
addr4:8 : Uint16;
addr3:8 : Uint16;
addr6:8 : Uint16;
addr5:8 : Uint16;
end;
I am not sure i also need this or not?
pMY_ADDR = ^MY_ADDR;