# PetscBitMemcpy

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

### Synopsis

    #include "petsc.h"
    int PetscBitMemcpy(void *a,int ai,const 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 is PETSC_LOGICAL.

### See Also

PetscMemmove(), PetscMemcpy()

Level:intermediate
Location: src/sys/src/utils/memc.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages