DmabufFormats.getNFormats

size_t getNFormats()

Returns the number of formats that the formats object contains.

Note that DMA buffers are a Linux concept, so on other platforms, [gdk.dmabuf_formats.DmabufFormats.getNFormats] will always return zero.

Returns

the number of formats