# PetscSegBufferGet
get new buffer space from a segmented buffer 
## Synopsis
```
PetscErrorCode PetscSegBufferGet(PetscSegBuffer seg, size_t count, void *buf)
```
Not Collective


## Input Parameters

- ***seg -*** address of segmented buffer
- ***count -*** number of entries needed



## Output Parameter

- ***buf -*** address of new buffer for contiguous data





## See Also
 `PetscSegBufferCreate()`, `PetscSegBufferExtractAlloc()`, `PetscSegBufferExtractTo()`, `PetscSegBufferExtractInPlace()`, `PetscSegBufferDestroy()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/segbuffer.c.html#PetscSegBufferGet">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
