Instance Propertyswift 6.1.2Swift

count

The number of bytes in the buffer.

var count: Int { get }

If the baseAddress of this buffer is nil, the count is zero. However, a buffer can have a count of zero even with a non-nil base address.