:orphan:
# PetscSegBufferExtractInPlace
extract in-place contiguous representation of data and reset segmented buffer for reuse 
## Synopsis
```
PetscErrorCode PetscSegBufferExtractInPlace(PetscSegBuffer seg, void *contig)
```
Not Collective


## Input Parameter

- ***seg -*** `PetscSegBuffer` object



## Output Parameter

- ***contig -*** address of pointer to contiguous memory, may be `NULL`





## See Also
 `PetscSegBuffer`, `PetscSegBufferExtractAlloc()`, `PetscSegBufferExtractTo()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/segbuffer.c.html#PetscSegBufferExtractInPlace">src/sys/utils/segbuffer.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/segbuffer.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
