Function

IOSurfaceGetBytesPerElement(_:)

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

Declaration

func IOSurfaceGetBytesPerElement(_ buffer: IOSurfaceRef) -> Int

Return Value

Returns 0 if buffer is invalid.