#include <string.h>
Go to the source code of this file.
Defines | |
#define | INC_OSKI_MEMCPY_H |
oski/memcpy.h included. | |
#define | oski_CopyMem(dest, src, elem_type, num_elems) |
Copy a typed block of consecutive memory elements from one buffer to another. | |
Functions | |
char * | oski_DuplicateString (const char *s) |
Returns a newly allocated copy of the NULL-terminated string 's'. |
#define INC_OSKI_MEMCPY_H |
oski/memcpy.h included.
#define oski_CopyMem | ( | dest, | |||
src, | |||||
elem_type, | |||||
num_elems | ) |
Value:
memcpy((void *)(dest), (const void *)(src), \ (num_elems) * sizeof(elem_type))
This implementation is simply a wrapper around memcpy.
[out] | dest | Buffer into which to copy. |
[in] | src | Buffer from which to copy. |
[in] | num_elems | Integer number of logical elements. |
[in] | elem_type | Type of each logical element. |
Referenced by array_Duplicate(), CalcMinMaxMedian(), ConvertFullBlocksFromCSR(), ConvertToCSR(), ConvertToCSR_Sorted(), CopyPointers(), InitSubmatCSR(), keropts_Process(), MatReprMultCore(), MBCSR_InitSubVecView(), MeasureStreamTimeCSC(), oski_ConvertMatReprToCSR(), oski_CopyMat(), oski_CopyMatRepr(), oski_CreateMatReprFromCSR(), oski_DuplicateString(), oski_MatReprMult(), oski_MatReprTransMatReprMult(), oski_MatReprTrisolve(), oski_RecordCalls(), oski_TransposeCSR(), and readhb_expand_symm().
char* oski_DuplicateString | ( | const char * | s | ) |
Returns a newly allocated copy of the NULL-terminated string 's'.
[in] | s | String to duplicate. |
References oski_CopyMem, oski_DuplicateString(), and oski_Malloc.
Referenced by ConvertLuaMat(), ConvertLuaMatToCSR(), CreateLuaMatObj(), NewLuaMat(), oski_CopyMat(), oski_CreateLuaMatReprGeneric2IndexFromCSR(), oski_CreateLuaMatReprGenericFromCSR(), oski_DuplicateString(), oski_GetMatTransforms(), oski_RegisterHeur(), oski_RegisterMatType(), and oski_ReplaceTunedMatRepr().