Function

IOSurfaceGetAllocSize

Returns the total allocation size of the buffer including all planes.

Declaration

size_t IOSurfaceGetAllocSize(IOSurfaceRef buffer);

Return Value

Returns 0 if buffer is invalid.