Function

IOSurfaceGetBytesPerElement

Returns the length (in bytes) of each element in a particular buffer.

Declaration

size_t IOSurfaceGetBytesPerElement(IOSurfaceRef buffer);

Return Value

Returns 0 if buffer is invalid.