Contents

byteCount

The number of bytes in the span.

Declaration

var byteCount: Int { get }

Discussion

To check whether the span is empty, use its isEmpty property instead of comparing count to zero.