Recognizes if input is ogg or not.
[xiph/unicode.git] / vp32 / CoreLibs / Include / duck_mem.h
blob5adef9702e44aa87daadd72b7c6387bf57b31cbe
1 //==========================================================================
2 //
3 // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6 // PURPOSE.
7 //
8 // Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
9 //
10 //--------------------------------------------------------------------------
13 #ifndef _duck_mem_h
14 #define _duck_mem_h
16 #include <stddef.h>
18 #if defined(__cplusplus)
19 extern "C" {
20 #endif
22 typedef enum tmemtype {
23 DMEM_GENERAL = 0,
24 DMEM_TEMP,
25 DMEM_CDBUFF,
26 DMEM_FRAMEBUFF
27 } dmemType;
29 /*
30 size_t should be found in stddef.h on most compilers
31 if necessary you can define this to be an unsigned int
34 void *duck_malloc(size_t, dmemType);
35 void *duck_calloc(size_t, size_t, dmemType);
36 void duck_free(void *);
38 void *duck_memcpy(void *dest, const void *source, size_t length);
39 void *duck_memset(void *dest, int val , size_t length);
40 int duck_strcmp(const char *one, const char *two);
42 /* This is needed by Voxware and QDesign and is generally a good little routine to abstract ! */
43 void *duck_memmove( void *dest, const void *src, size_t count );
47 /**** applicable on some systems only ****/
49 void duck_MEM_Init(long dAddr,long dSize);
50 void duck_MEM_Reset(void);
52 /*****************************************/
54 #if defined(__cplusplus)
56 #endif
57 #endif