Use standard array syntax. For example, do this:
var myArray: [UInt8] = []

instead of this:
var pendingSendBytes = [UInt8]()