     @warn_unused_result
     func update(withData data: Data) -> Data {
         if data.count >= capacity {
-            return sendAllArray(data)
+            return sendAll(data: data)
         } else if buffer.count + data.count <= capacity {
             buffer.append(data)
             return Data()
         } else {
-            return sendSomeArray(data)
+            return sendSome(data: data)
         }
     }
 

        return result
    }

    private func sendAllArray(_ data: Data) -> Data {
        let toSend = data.count - capacity
        assert(toSend >= 0)
        assert(data.count - toSend <= capacity)

        return result
    }

    private func sendSome(data: Data) -> Data {
        let toSend = (buffer.count + data.count) - capacity
        assert(toSend > 0) // If it were <= 0, we would have extended the array
        assert(toSend < buffer.count) // If we would have sent everything, replaceBuffer should have been called
