cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

dataBuff.h

Go to the documentation of this file.
00001 /******************************************************
00002         gv System engine 3D/2D
00003 *******************************************************/
00004 
00005 
00006 #pragma once
00007 #ifndef __DATABUFFH__
00008 #define __DATABUFFH__
00009 
00010 struct dataEntry_t
00011 {
00012    int size;
00013    char *data;
00014 };
00015 
00016 typedef gvList<dataEntry_t *> DataList;
00017 typedef DataList::Iterator DataListIter;
00018 
00020 typedef struct _dataBuff_t
00021 {
00022    _dataBuff_t()          {     totalSize = 0;  }
00023    virtual ~_dataBuff_t() {     Flush(); }
00024 
00025    void Flush(void);
00026    void Add(char *buff, int len);
00027    char *Merge(int &size);
00028 
00029 protected:
00030    int totalSize;
00031    DataList data;
00032 public:
00033    long GetSize(void);
00034 } dataBuff_t;
00035 
00036 #endif
00037 

Copyright(C) gvSystem & GamePlus All Rights Reserved.