Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# dkcBuffer.h

Go to the documentation of this file.

    00001
    00011 #ifndef dkutil_c_Buffer__h
    00012 #define dkutil_c_Buffer__h
    00013
    00014 #include "dkcOSIndependent.h"
    00015
    00016
    00020 typedef struct dkc_Buffer{
    00022         BYTE *mBuff;
    00024         size_t mSize;
    00025 }DKC_BUFFER;
    00026
    00027
    00028
    00029
    00034
    00035 DKC_EXTERN DKC_BUFFER* WINAPI dkcAllocBuffer(const void *data,size_t size);
    00041
    00042 DKC_EXTERN int WINAPI dkcFreeBuffer(DKC_BUFFER **ptr);
    00043
    00044
    00048 DKC_EXTERN int WINAPI dkcBufferSet(DKC_BUFFER *ptr,const void *data,size_t size);
    00052 DKC_EXTERN int WINAPI dkcBufferGet(DKC_BUFFER *ptr,void *data,size_t size);
    00056 DKC_EXTERN int WINAPI dkcBufferResize(DKC_BUFFER *ptr,size_t size);
    00057
    00058 DKC_EXTERN DKC_BUFFER* WINAPI dkcAllocBufferCopy(const DKC_BUFFER *);
    00059
    00060 #endif //end of include once