fastest 3D software for linux

Linux 3D
interactive ray-tracing
[Introduction] [Overview] [Core reference] [3D reference] [GUI]

Index

 EMalloc
 ECalloc
 ERealloc
 EFree
 EStrLenW16
 EStrLenW
 EStrLenW16Unaligned
 EStrLenW32Unaligned
 EStrDup
 EStrDupLine
 EStrDupU
 EStrNDup
 EStrDupW16
 EStrDupW
 EStrDup8toW
 EStrDupWto8
 EStrDupSuffix

EMalloc

Allocate memory

Syntax
void* EMalloc(const size_t PSize)

Argument
PSize Size in bytes
Description
Allocates a block of memory. The size is given in bytes.

Return value
Pointer to the allocated memory block or NULL in case of an error.

See also
ERealloc, EFree

ECalloc

Allocate memory

Syntax
void* ECalloc(const size_t PNMemb, const size_t PSize)

Argument
PNMemb Number of elements PSize Size of each element, in bytes
Description
Allocates a block of memory. The size is given in bytes.

Return value
Pointer to the allocated memory block or NULL in case of an error.

See also
ERealloc, EFree

ERealloc

Reallocate memory

Syntax
void* ERealloc(void* POldMem, const size_t PNewSize)

Arguments
POldMem Old buffer PSize Requested new size in bytes
Description
Re-allocates a block of memory. The new size is given in bytes. If the starting address of the new block differs from the old, ERealloc will copy the overlapping area over to the new address.

Return value
Pointer to the re-allocated memory block or NULL in case of an error.

See also
EMalloc, EFree

EFree

Free allocated memory block

Syntax
void EFree(void* LMem)

Arguments
PMem Buffer to free
Description
Frees memory allocated by EMalloc or ERealloc.

Return value
None.

See also
EMalloc, ERealloc

EStrLenW16

Get the length of a 0-terminated wide-character string

Syntax
size_t EStrLenW16(const uint16_t* PString)

Argument
PString Pointer to the string
Description
Return the number of characters in PStr, not including the terminating zero.

Return value
The number of characters in PString.

See also
EStrLenW16Unaligned, EStrDup, ERealloc, EFree

EStrLenW

Get the length of a 0-terminated wide-character string

Syntax
size_t EStrLenW(const wchar_t* PString)

Argument
PString Pointer to the string
Description
Return the number of characters in PStr, not including the terminating zero.

Return value
The number of characters in PString.

See also
EStrLenW16Unaligned, EStrDup, ERealloc, EFree

EStrLenW16Unaligned

Get the length of a 0-terminated, 2-byte wide-character string

Syntax
size_t EStrLenW16Unaligned(const uint8_t* PString)

Argument
PString Pointer to the string
Description
Return the number of characters in PStr, not including the terminating zero.

Return value
The number of characters in PString. The input data may not be aligned to an address divisible by 2. This is useful when reading or skipping wide character strings in a file.

See also
EStrLenW, EStrDup, ERealloc, EFree

EStrLenW32Unaligned

Get the length of a 0-terminated, 4-byte wide-character string

Syntax
size_t EStrLenW32Unaligned(const uint8_t* PString)

Argument
PString Pointer to the string
Description
Return the number of characters in PStr, not including the terminating zero.

Return value
The number of characters in PString. The input data may not be aligned to an address divisible by 2. This is useful when reading or skipping wide character strings in a file.

See also
EStrLenW, EStrDup, ERealloc, EFree

EStrDup

Duplicate a char* string

Syntax
char* EStrDup(const char* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDupW, ERealloc, EFree

EStrDupLine

Duplicate a char* string

Syntax
char* EStrDupLine(const char* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDupW, ERealloc, EFree

EStrDupU

Duplicate a uint8_t* string

Syntax
uint8_t* EStrDupU(const uint8_t* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDupW, ERealloc, EFree

EStrNDup

Duplicate string. The length is explicitly specified

Syntax
char* EStrNDup(const char* PString, const EIndex PLen)

Argument
PString String to duplicate PLen The length of the string
Description
Allocates enough memory and makes a copy of a string. The string doesn't need to be null-terminated.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDup, EStrDupW, ERealloc, EFree

EStrDupW16

Duplicate wide-character string

Syntax
uint16_t* EStrDupW16(const uint16_t* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDup, EStrDup8toW, ERealloc, EFree

EStrDupW

Duplicate wide-character string

Syntax
wchar_t* EStrDupW(const wchar_t* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
EStrDup, EStrDup8toW, ERealloc, EFree

EStrDup8toW

Duplicate an 8-bit string into wide-character format

Syntax
wchar_t* EStrDup8toW(const char* PString)

Argument
PString String to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of PString or NULL in case of an error.

See also
EStrDup, EStrDupW, ERealloc, EFree

EStrDupWto8

Duplicate a wide-character string into 8-bit format

Syntax
char* EStrDupWto8(const wchar_t* PString)

Argument
PString The string to duplicate
Description
Allocates enough memory and makes a copy of a string.

Return value
Pointer to the copy of PString or NULL in case of an error.

See also
EStrDup, EStrDupW, ERealloc, EFree

EStrDupSuffix

Duplicate string and add suffix

Syntax
char* EStrDupSuffix(const char* PStr, const char* PSuffix)

Argument
PString String to duplicate PSuffix Suffix string
Description
Allocates enough memory and makes a copy of a string with a suffix added. It's essentially like strcat, but with allocation.

Return value
Pointer to the copy of LString or NULL in case of an error.

See also
ERealloc, EFree
© 1996-2025 By Gabor Nagy