PetscBitMemcpy

Copies an amount of data. This can include bit data.

Synopsis

int PetscBitMemcpy(void *a,int ai,void *b,int bi,int bs,PetscDataType dtype)
Not Collective

Input Parameters

b - pointer to initial memory space
bi - offset of initial memory space (in elementary chunk sizes)
bs - length (in elementary chunk sizes) of space to copy
dtype - datatype, for example, PETSC_INT, PETSC_DOUBLE, PETSC_LOGICAL

Output Parameters

a - pointer to result memory space
ai - offset of result memory space (in elementary chunk sizes)

Note

This routine is analogous to PetscMemcpy(), except when the data type isPETSC_LOGICAL.

Keywords

Petsc, copy, memory

See Also

PetscMemmove(), PetscMemcpy()

Location: src/sys/src/utilsmemc.c
System Index
Table of Contents