Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftmemory.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define FT_SET_ERROR(expression)   ( ( error = (expression) ) != 0 )
 
#define FT_ASSIGNP(p, val)   (p) = (val)
 
#define FT_DEBUG_INNER(exp)   (exp)
 
#define FT_ASSIGNP_INNER(p, exp)   FT_ASSIGNP( p, exp )
 
#define FT_MEM_ALLOC(ptr, size)   FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, (size), &error ) )
 
#define FT_MEM_FREE(ptr)
 
#define FT_MEM_NEW(ptr)   FT_MEM_ALLOC( ptr, sizeof ( *(ptr) ) )
 
#define FT_MEM_REALLOC(ptr, cursz, newsz)
 
#define FT_MEM_QALLOC(ptr, size)   FT_ASSIGNP_INNER( ptr, ft_mem_qalloc( memory, (size), &error ) )
 
#define FT_MEM_QNEW(ptr)   FT_MEM_QALLOC( ptr, sizeof ( *(ptr) ) )
 
#define FT_MEM_QREALLOC(ptr, cursz, newsz)
 
#define FT_MEM_QRENEW_ARRAY(ptr, cursz, newsz)
 
#define FT_MEM_ALLOC_MULT(ptr, count, item_size)
 
#define FT_MEM_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
 
#define FT_MEM_QALLOC_MULT(ptr, count, item_size)
 
#define FT_MEM_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
 
#define FT_MEM_SET_ERROR(cond)   ( (cond), error != 0 )
 
#define FT_MEM_SET(dest, byte, count)   ft_memset( dest, byte, count )
 
#define FT_MEM_COPY(dest, source, count)   ft_memcpy( dest, source, count )
 
#define FT_MEM_MOVE(dest, source, count)   ft_memmove( dest, source, count )
 
#define FT_MEM_ZERO(dest, count)   FT_MEM_SET( dest, 0, count )
 
#define FT_ZERO(p)   FT_MEM_ZERO( p, sizeof ( *(p) ) )
 
#define FT_ARRAY_ZERO(dest, count)   FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) )
 
#define FT_ARRAY_COPY(dest, source, count)   FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) )
 
#define FT_ARRAY_MOVE(dest, source, count)   FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) )
 
#define FT_ARRAY_MAX(ptr)   ( FT_INT_MAX / sizeof ( *(ptr) ) )
 
#define FT_ARRAY_CHECK(ptr, count)   ( (count) <= FT_ARRAY_MAX( ptr ) )
 
#define FT_MEM_NEW_ARRAY(ptr, count)
 
#define FT_MEM_RENEW_ARRAY(ptr, cursz, newsz)
 
#define FT_MEM_QNEW_ARRAY(ptr, count)
 
#define FT_MEM_QRENEW_ARRAY(ptr, cursz, newsz)
 
#define FT_ALLOC(ptr, size)   FT_MEM_SET_ERROR( FT_MEM_ALLOC( ptr, size ) )
 
#define FT_REALLOC(ptr, cursz, newsz)   FT_MEM_SET_ERROR( FT_MEM_REALLOC( ptr, cursz, newsz ) )
 
#define FT_ALLOC_MULT(ptr, count, item_size)   FT_MEM_SET_ERROR( FT_MEM_ALLOC_MULT( ptr, count, item_size ) )
 
#define FT_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
 
#define FT_QALLOC(ptr, size)   FT_MEM_SET_ERROR( FT_MEM_QALLOC( ptr, size ) )
 
#define FT_QREALLOC(ptr, cursz, newsz)   FT_MEM_SET_ERROR( FT_MEM_QREALLOC( ptr, cursz, newsz ) )
 
#define FT_QALLOC_MULT(ptr, count, item_size)   FT_MEM_SET_ERROR( FT_MEM_QALLOC_MULT( ptr, count, item_size ) )
 
#define FT_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
 
#define FT_FREE(ptr)   FT_MEM_FREE( ptr )
 
#define FT_NEW(ptr)   FT_MEM_SET_ERROR( FT_MEM_NEW( ptr ) )
 
#define FT_NEW_ARRAY(ptr, count)   FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
 
#define FT_RENEW_ARRAY(ptr, curcnt, newcnt)   FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
 
#define FT_QNEW(ptr)   FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )
 
#define FT_QNEW_ARRAY(ptr, count)   FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
 
#define FT_QRENEW_ARRAY(ptr, curcnt, newcnt)   FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
 
#define FT_MEM_STRDUP(dst, str)   (dst) = (char*)ft_mem_strdup( memory, (const char*)(str), &error )
 
#define FT_STRDUP(dst, str)   FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )
 
#define FT_MEM_DUP(dst, address, size)   (dst) = ft_mem_dup( memory, (address), (FT_ULong)(size), &error )
 
#define FT_DUP(dst, address, size)   FT_MEM_SET_ERROR( FT_MEM_DUP( dst, address, size ) )
 
#define FT_STRCPYN(dst, src, size)   ft_mem_strcpyn( (char*)dst, (const char*)(src), (FT_ULong)(size) )
 

Functions

 ft_mem_alloc (FT_Memory memory, FT_Long size, FT_Error *p_error)
 
 ft_mem_qalloc (FT_Memory memory, FT_Long size, FT_Error *p_error)
 
 ft_mem_realloc (FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
 
 ft_mem_qrealloc (FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
 
 ft_mem_free (FT_Memory memory, const void *P)
 
 ft_mem_strdup (FT_Memory memory, const char *str, FT_Error *p_error)
 
 ft_mem_dup (FT_Memory memory, const void *address, FT_ULong size, FT_Error *p_error)
 
 ft_mem_strcpyn (char *dst, const char *src, FT_ULong size)
 

Macro Definition Documentation

◆ FT_ALLOC

#define FT_ALLOC (   ptr,
  size 
)    FT_MEM_SET_ERROR( FT_MEM_ALLOC( ptr, size ) )

◆ FT_ALLOC_MULT

#define FT_ALLOC_MULT (   ptr,
  count,
  item_size 
)    FT_MEM_SET_ERROR( FT_MEM_ALLOC_MULT( ptr, count, item_size ) )

Definition at line 266 of file ftmemory.h.

◆ FT_ARRAY_CHECK

#define FT_ARRAY_CHECK (   ptr,
  count 
)    ( (count) <= FT_ARRAY_MAX( ptr ) )

Definition at line 230 of file ftmemory.h.

◆ FT_ARRAY_COPY

#define FT_ARRAY_COPY (   dest,
  source,
  count 
)    FT_MEM_COPY( dest, source, (count) * sizeof ( *(dest) ) )

Definition at line 216 of file ftmemory.h.

Referenced by FT_Bitmap_Convert(), FT_GlyphLoader_CopyPoints(), and FT_Outline_Copy().

◆ FT_ARRAY_MAX

#define FT_ARRAY_MAX (   ptr)    ( FT_INT_MAX / sizeof ( *(ptr) ) )

Definition at line 228 of file ftmemory.h.

◆ FT_ARRAY_MOVE

#define FT_ARRAY_MOVE (   dest,
  source,
  count 
)    FT_MEM_MOVE( dest, source, (count) * sizeof ( *(dest) ) )

Definition at line 219 of file ftmemory.h.

Referenced by FT_GlyphLoader_CheckPoints().

◆ FT_ARRAY_ZERO

#define FT_ARRAY_ZERO (   dest,
  count 
)    FT_MEM_ZERO( dest, (count) * sizeof ( *(dest) ) )

Definition at line 213 of file ftmemory.h.

◆ FT_ASSIGNP

#define FT_ASSIGNP (   p,
  val 
)    (p) = (val)

Definition at line 80 of file ftmemory.h.

◆ FT_ASSIGNP_INNER

#define FT_ASSIGNP_INNER (   p,
  exp 
)    FT_ASSIGNP( p, exp )

Definition at line 102 of file ftmemory.h.

◆ FT_DEBUG_INNER

#define FT_DEBUG_INNER (   exp)    (exp)

Definition at line 101 of file ftmemory.h.

◆ FT_DUP

#define FT_DUP (   dst,
  address,
  size 
)    FT_MEM_SET_ERROR( FT_MEM_DUP( dst, address, size ) )

Definition at line 357 of file ftmemory.h.

◆ FT_FREE

#define FT_FREE (   ptr)    FT_MEM_FREE( ptr )

◆ FT_MEM_ALLOC

#define FT_MEM_ALLOC (   ptr,
  size 
)    FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, (size), &error ) )

Definition at line 144 of file ftmemory.h.

◆ FT_MEM_ALLOC_MULT

#define FT_MEM_ALLOC_MULT (   ptr,
  count,
  item_size 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, (item_size), \
0, (count), \
NULL, &error ) )
#define NULL
Definition: ftobjs.h:61
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
ft_mem_realloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
GLuint GLuint GLsizei count

Definition at line 177 of file ftmemory.h.

◆ FT_MEM_COPY

#define FT_MEM_COPY (   dest,
  source,
  count 
)    ft_memcpy( dest, source, count )

◆ FT_MEM_DUP

#define FT_MEM_DUP (   dst,
  address,
  size 
)    (dst) = ft_mem_dup( memory, (address), (FT_ULong)(size), &error )

Definition at line 354 of file ftmemory.h.

◆ FT_MEM_FREE

#define FT_MEM_FREE (   ptr)
Value:
ft_mem_free( memory, (ptr) ); \
(ptr) = NULL; \
FT_END_STMNT
ft_mem_free(FT_Memory memory, const void *P)
Definition: ftutil.c:168
#define NULL
Definition: ftobjs.h:61
png_voidp ptr
Definition: png.h:1908

Definition at line 147 of file ftmemory.h.

Referenced by ft_highpow2().

◆ FT_MEM_MOVE

#define FT_MEM_MOVE (   dest,
  source,
  count 
)    ft_memmove( dest, source, count )

Definition at line 205 of file ftmemory.h.

Referenced by cid_parser_new().

◆ FT_MEM_NEW

#define FT_MEM_NEW (   ptr)    FT_MEM_ALLOC( ptr, sizeof ( *(ptr) ) )

Definition at line 153 of file ftmemory.h.

◆ FT_MEM_NEW_ARRAY

#define FT_MEM_NEW_ARRAY (   ptr,
  count 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, sizeof ( *(ptr) ), \
0, (count), \
NULL, &error ) )
#define NULL
Definition: ftobjs.h:61
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
ft_mem_realloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
GLuint GLuint GLsizei count

Definition at line 239 of file ftmemory.h.

◆ FT_MEM_QALLOC

#define FT_MEM_QALLOC (   ptr,
  size 
)    FT_ASSIGNP_INNER( ptr, ft_mem_qalloc( memory, (size), &error ) )

Definition at line 161 of file ftmemory.h.

◆ FT_MEM_QALLOC_MULT

#define FT_MEM_QALLOC_MULT (   ptr,
  count,
  item_size 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, (item_size), \
0, (count), \
NULL, &error ) )
#define NULL
Definition: ftobjs.h:61
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
GLuint GLuint GLsizei count
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 187 of file ftmemory.h.

◆ FT_MEM_QNEW

#define FT_MEM_QNEW (   ptr)    FT_MEM_QALLOC( ptr, sizeof ( *(ptr) ) )

Definition at line 164 of file ftmemory.h.

◆ FT_MEM_QNEW_ARRAY

#define FT_MEM_QNEW_ARRAY (   ptr,
  count 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
0, (count), \
NULL, &error ) )
#define NULL
Definition: ftobjs.h:61
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
GLuint GLuint GLsizei count
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 249 of file ftmemory.h.

◆ FT_MEM_QREALLOC

#define FT_MEM_QREALLOC (   ptr,
  cursz,
  newsz 
)
Value:
(cursz), (newsz), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 167 of file ftmemory.h.

◆ FT_MEM_QREALLOC_MULT

#define FT_MEM_QREALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, (itmsz), \
(oldcnt), (newcnt), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 192 of file ftmemory.h.

◆ FT_MEM_QRENEW_ARRAY [1/2]

#define FT_MEM_QRENEW_ARRAY (   ptr,
  cursz,
  newsz 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
(cursz), (newsz), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 254 of file ftmemory.h.

◆ FT_MEM_QRENEW_ARRAY [2/2]

#define FT_MEM_QRENEW_ARRAY (   ptr,
  cursz,
  newsz 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_qrealloc( memory, sizeof ( *(ptr) ), \
(cursz), (newsz), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102
ft_mem_qrealloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:114

Definition at line 254 of file ftmemory.h.

◆ FT_MEM_REALLOC

#define FT_MEM_REALLOC (   ptr,
  cursz,
  newsz 
)
Value:
(cursz), (newsz), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
ft_mem_realloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 156 of file ftmemory.h.

◆ FT_MEM_REALLOC_MULT

#define FT_MEM_REALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, (itmsz), \
(oldcnt), (newcnt), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
ft_mem_realloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 182 of file ftmemory.h.

◆ FT_MEM_RENEW_ARRAY

#define FT_MEM_RENEW_ARRAY (   ptr,
  cursz,
  newsz 
)
Value:
FT_ASSIGNP_INNER( ptr, ft_mem_realloc( memory, sizeof ( *(ptr) ), \
(cursz), (newsz), \
(ptr), &error ) )
png_voidp ptr
Definition: png.h:1908
FT_Error error
Definition: cffdrivr.c:411
ft_mem_realloc(FT_Memory memory, FT_Long item_size, FT_Long cur_count, FT_Long new_count, void *block, FT_Error *p_error)
Definition: ftutil.c:92
#define FT_ASSIGNP_INNER(p, exp)
Definition: ftmemory.h:102

Definition at line 244 of file ftmemory.h.

◆ FT_MEM_SET

#define FT_MEM_SET (   dest,
  byte,
  count 
)    ft_memset( dest, byte, count )

Definition at line 201 of file ftmemory.h.

◆ FT_MEM_SET_ERROR

#define FT_MEM_SET_ERROR (   cond)    ( (cond), error != 0 )

Definition at line 198 of file ftmemory.h.

◆ FT_MEM_STRDUP

#define FT_MEM_STRDUP (   dst,
  str 
)    (dst) = (char*)ft_mem_strdup( memory, (const char*)(str), &error )

Definition at line 348 of file ftmemory.h.

◆ FT_MEM_ZERO

#define FT_MEM_ZERO (   dest,
  count 
)    FT_MEM_SET( dest, 0, count )

◆ FT_NEW

#define FT_NEW (   ptr)    FT_MEM_SET_ERROR( FT_MEM_NEW( ptr ) )

◆ FT_NEW_ARRAY

#define FT_NEW_ARRAY (   ptr,
  count 
)    FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )

◆ FT_QALLOC

#define FT_QALLOC (   ptr,
  size 
)    FT_MEM_SET_ERROR( FT_MEM_QALLOC( ptr, size ) )

Definition at line 273 of file ftmemory.h.

Referenced by FT_Bitmap_Copy(), ft_highpow2(), and FT_Stream_EnterFrame().

◆ FT_QALLOC_MULT

#define FT_QALLOC_MULT (   ptr,
  count,
  item_size 
)    FT_MEM_SET_ERROR( FT_MEM_QALLOC_MULT( ptr, count, item_size ) )

Definition at line 279 of file ftmemory.h.

◆ FT_QNEW

#define FT_QNEW (   ptr)    FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )

Definition at line 296 of file ftmemory.h.

Referenced by cf2_stack_init().

◆ FT_QNEW_ARRAY

#define FT_QNEW_ARRAY (   ptr,
  count 
)    FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )

Definition at line 299 of file ftmemory.h.

Referenced by tt_face_load_gasp(), and tt_face_load_hmtx().

◆ FT_QREALLOC

#define FT_QREALLOC (   ptr,
  cursz,
  newsz 
)    FT_MEM_SET_ERROR( FT_MEM_QREALLOC( ptr, cursz, newsz ) )

Definition at line 276 of file ftmemory.h.

Referenced by FT_Bitmap_Convert(), FT_Bitmap_Copy(), and ft_highpow2().

◆ FT_QREALLOC_MULT

#define FT_QREALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
newcnt, itmsz ) )
png_voidp ptr
Definition: png.h:1908
#define FT_MEM_SET_ERROR(cond)
Definition: ftmemory.h:198
#define FT_MEM_QREALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
Definition: ftmemory.h:192

Definition at line 282 of file ftmemory.h.

◆ FT_QRENEW_ARRAY

#define FT_QRENEW_ARRAY (   ptr,
  curcnt,
  newcnt 
)    FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )

Definition at line 302 of file ftmemory.h.

Referenced by tt_cmap_init().

◆ FT_REALLOC

#define FT_REALLOC (   ptr,
  cursz,
  newsz 
)    FT_MEM_SET_ERROR( FT_MEM_REALLOC( ptr, cursz, newsz ) )

Definition at line 263 of file ftmemory.h.

Referenced by ft_highpow2().

◆ FT_REALLOC_MULT

#define FT_REALLOC_MULT (   ptr,
  oldcnt,
  newcnt,
  itmsz 
)
Value:
newcnt, itmsz ) )
png_voidp ptr
Definition: png.h:1908
#define FT_MEM_SET_ERROR(cond)
Definition: ftmemory.h:198
#define FT_MEM_REALLOC_MULT(ptr, oldcnt, newcnt, itmsz)
Definition: ftmemory.h:182

Definition at line 269 of file ftmemory.h.

◆ FT_RENEW_ARRAY

#define FT_RENEW_ARRAY (   ptr,
  curcnt,
  newcnt 
)    FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )

◆ FT_SET_ERROR

#define FT_SET_ERROR (   expression)    ( ( error = (expression) ) != 0 )

Definition at line 42 of file ftmemory.h.

Referenced by cff_font_load().

◆ FT_STRCPYN

#define FT_STRCPYN (   dst,
  src,
  size 
)    ft_mem_strcpyn( (char*)dst, (const char*)(src), (FT_ULong)(size) )

Definition at line 369 of file ftmemory.h.

◆ FT_STRDUP

#define FT_STRDUP (   dst,
  str 
)    FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )

Definition at line 351 of file ftmemory.h.

Referenced by BDF_Face_Init().

◆ FT_ZERO

#define FT_ZERO (   p)    FT_MEM_ZERO( p, sizeof ( *(p) ) )

Function Documentation

◆ ft_mem_alloc()

ft_mem_alloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 50 of file ftutil.c.

References error, FT_BASE_DEF, ft_mem_qalloc(), and FT_MEM_ZERO.

Referenced by ft_mem_qrealloc().

◆ ft_mem_dup()

ft_mem_dup ( FT_Memory  memory,
const void address,
FT_ULong  size,
FT_Error p_error 
)

Definition at line 177 of file ftutil.c.

References error, FT_BASE_DEF, ft_mem_qalloc(), and ft_memcpy.

Referenced by ft_mem_strdup().

◆ ft_mem_free()

ft_mem_free ( FT_Memory  memory,
const void P 
)

Definition at line 168 of file ftutil.c.

References FT_BASE_DEF.

Referenced by ft_mem_qrealloc(), FT_Stream_ExitFrame(), and FT_Stream_ReleaseFrame().

◆ ft_mem_qalloc()

ft_mem_qalloc ( FT_Memory  memory,
FT_Long  size,
FT_Error p_error 
)

Definition at line 66 of file ftutil.c.

References error, FT_BASE_DEF, FT_Err_Ok, FT_THROW(), and NULL.

Referenced by ft_mem_alloc(), ft_mem_dup(), and FT_Stream_EnterFrame().

◆ ft_mem_qrealloc()

ft_mem_qrealloc ( FT_Memory  memory,
FT_Long  item_size,
FT_Long  cur_count,
FT_Long  new_count,
void block,
FT_Error p_error 
)

Definition at line 114 of file ftutil.c.

References error, FT_ASSERT, FT_BASE_DEF, FT_Err_Ok, FT_INT_MAX, ft_mem_alloc(), ft_mem_free(), FT_THROW(), and NULL.

Referenced by ft_mem_realloc().

◆ ft_mem_realloc()

ft_mem_realloc ( FT_Memory  memory,
FT_Long  item_size,
FT_Long  cur_count,
FT_Long  new_count,
void block,
FT_Error p_error 
)

Definition at line 92 of file ftutil.c.

References error, FT_BASE_DEF, FT_Err_Ok, ft_mem_qrealloc(), and FT_MEM_ZERO.

◆ ft_mem_strcpyn()

ft_mem_strcpyn ( char *  dst,
const char *  src,
FT_ULong  size 
)

Definition at line 208 of file ftutil.c.

◆ ft_mem_strdup()

ft_mem_strdup ( FT_Memory  memory,
const char *  str,
FT_Error p_error 
)

Definition at line 195 of file ftutil.c.

References FT_BASE_DEF, ft_mem_dup(), and ft_strlen.