D
D_LOVER
Unregistered / Unconfirmed
GUEST, unregistred user!
将下面的C++代码翻译成Delphi代码!
(主要是数据类型的对比,C++中的容器类和Delphi中的。。。。。??)
class FStream
{
private:
struct LargeData
{
unsigned long position;
const unsigned char* data;
unsigned long size;
};
std::vector<unsigned char> stream;
unsigned long streamPos;
unsigned long bytePos;
unsigned char currentByte;
std::list<LargeData> outDataList;
public:
FStream();
unsigned long Size();
unsigned char* Memory() { return &stream[0]; }
void WriteBits( unsigned long data, unsigned long size );
void WriteLargeData( const unsigned long* data, unsigned long size );
};
(主要是数据类型的对比,C++中的容器类和Delphi中的。。。。。??)
class FStream
{
private:
struct LargeData
{
unsigned long position;
const unsigned char* data;
unsigned long size;
};
std::vector<unsigned char> stream;
unsigned long streamPos;
unsigned long bytePos;
unsigned char currentByte;
std::list<LargeData> outDataList;
public:
FStream();
unsigned long Size();
unsigned char* Memory() { return &stream[0]; }
void WriteBits( unsigned long data, unsigned long size );
void WriteLargeData( const unsigned long* data, unsigned long size );
};