dmBuffer(3dm)dmBuffer(3dm)NAME
dmBufferGetPoolState - query available space in pool
SYNOPSIS
#include <dmedia/dm_buffer.h>
DMstatus dmBufferGetPoolState( DMbufferpool pool,
long long *bytesAvailable,
int *buffersAvailable );
DESCRIPTION
dmBufferGetPoolState returns the number of bytes and buffers which can be
successfully allocated from the pool before the pool fills up with
allocated buffers (causing dmBufferAllocate to fail).
Currently, each buffer in a DMbufferpool has a fixed size. Therefore,
the number of DMbuffers which can be allocated and the number of bytes
which can be allocated are related by a constant factor, which is
returned by dmBufferGetAllocSize. This may change in future releases.
SEE ALSOdmBufferSetPoolDefaults(3dm), dmBufferAllocate(3dm),
dmBufferGetSize(3dm).
Page 1