~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxCore/FileManager/NFileManagerStandardAnsi.h

  • Committer: Jay Taoko
  • Date: 2011-10-21 22:06:35 UTC
  • mto: This revision was merged to the branch mainline in revision 509.
  • Revision ID: jay.taoko@canonical.com-20111021220635-1tdvncs47hdlfbz1
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  class NSerializeFileReader : public NSerializer
33
33
  {
34
34
  public:
35
 
    NSerializeFileReader (FILE *InFile, LogOutputDevice *InError, t_int InSize);
 
35
    NSerializeFileReader (FILE *InFile, LogOutputDevice *InError, int InSize);
36
36
    ~NSerializeFileReader();
37
37
 
38
 
    virtual bool Precache (t_int PrecacheOffset, t_int PrecacheSize);
39
 
    virtual t_s64 Seek (t_s64 InPos, NSerializer::SeekPos seekpos);
40
 
    virtual t_s64 Tell();
41
 
    virtual t_s64 GetFileSize();
 
38
    virtual bool Precache (int PrecacheOffset, int PrecacheSize);
 
39
    virtual long long Seek (long long InPos, NSerializer::SeekPos seekpos);
 
40
    virtual long long Tell();
 
41
    virtual long long GetFileSize();
42
42
    virtual bool Close();
43
 
    virtual void SerializeFinal (void *Dest, t_s64 Length);
 
43
    virtual void SerializeFinal (void *Dest, long long Length);
44
44
    virtual bool isReader()
45
45
    {
46
46
      return true;
53
53
  protected:
54
54
    FILE                        *m_File;
55
55
    LogOutputDevice     *m_Error;
56
 
    t_int                               m_FileSize;
57
 
    t_int                               m_FilePos;
58
 
    t_int                               BufferBase;
59
 
    t_int                               BufferCount;
 
56
    int                         m_FileSize;
 
57
    int                         m_FilePos;
 
58
    int                         BufferBase;
 
59
    int                         BufferCount;
60
60
    BYTE               *m_PreCacheBuffer;
61
 
    static const t_int  sBufferSize;
 
61
    static const int  sBufferSize;
62
62
  };
63
63
 
64
64
  class NSerializeFileWriter : public NSerializer
67
67
    NSerializeFileWriter (FILE *InFile, LogOutputDevice *InError);
68
68
    ~NSerializeFileWriter();
69
69
 
70
 
    virtual t_s64 Seek (t_s64 InPos, NSerializer::SeekPos seekpos);
71
 
    virtual t_s64 Tell();
72
 
    virtual t_s64 GetFileSize();
 
70
    virtual long long Seek (long long InPos, NSerializer::SeekPos seekpos);
 
71
    virtual long long Tell();
 
72
    virtual long long GetFileSize();
73
73
    virtual bool Close();
74
 
    virtual void SerializeFinal (void *Src, t_s64 Length);
 
74
    virtual void SerializeFinal (void *Src, long long Length);
75
75
    virtual void Flush();
76
76
    virtual bool isReader()
77
77
    {
85
85
  protected:
86
86
    FILE               *m_File;
87
87
    LogOutputDevice     *m_Error;
88
 
    t_int               m_FilePos;
89
 
    t_int               m_CachePos;
 
88
    int               m_FilePos;
 
89
    int               m_CachePos;
90
90
    BYTE               *m_CacheBuffer;
91
 
    static const t_int  sBufferSize;
 
91
    static const int  sBufferSize;
92
92
  };
93
93
 
94
94
  class NFileManagerAnsi : public NFileManagerGeneric