Instance Property

length

The number of bytes contained by the data object.

Declaration

var length: Int { get }

See Also

Testing Data

func isEqual(to: Data)

Returns a Boolean indicating whether this data object is the same as another.

func contains(UInt8)

Returns a Boolean value indicating whether the sequence contains the given element.

func contains(where: (UInt8) -> Bool)

Returns a Boolean value indicating whether the sequence contains an element that satisfies the given predicate.