A
adepeng
Unregistered / Unconfirmed
GUEST, unregistred user!
class CDESEncDec
{
....
private:
void BitToByte(char *Out, const bool *In, int bits);
...
};
void CDESEncDec::BitToByte(char *Out, const bool *In, int bits)
{
memset(Out, 0, bits>>3);
for(int i=0
i<bits
++i)
Out[i>>3] |= In<<(i&7);
}
我这段代码转化为DELPHI代码?
{
....
private:
void BitToByte(char *Out, const bool *In, int bits);
...
};
void CDESEncDec::BitToByte(char *Out, const bool *In, int bits)
{
memset(Out, 0, bits>>3);
for(int i=0
i<bits
++i)
Out[i>>3] |= In<<(i&7);
}
我这段代码转化为DELPHI代码?