:orphan: # PetscSegBufferGetSize get currently used size of a `PetscSegBuffer` ## Synopsis ``` PetscErrorCode PetscSegBufferGetSize(PetscSegBuffer seg, size_t *usedsize) ``` Not Collective ## Input Parameter - ***seg -*** `PetscSegBuffer` object ## Output Parameter - ***usedsize -*** number of used units ## See Also `PetscSegBuffer`, `PetscSegBufferExtractAlloc()`, `PetscSegBufferExtractTo()`, `PetscSegBufferCreate()`, `PetscSegBufferGet()` ## Level developer ## Location src/sys/utils/segbuffer.c --- [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)