[Swift] Improving reallocation time by using memcpy and moving reallocation code...
authormustiikhalil <mustii@mmk.one>
Thu, 11 Jun 2020 15:53:32 +0000 (18:53 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 15:53:32 +0000 (08:53 -0700)
commit7cb4762a61fc6ac3543558e7e7836985bffa07fe
tree860790a097b1416f63882fc3b381c216f932e34e
parent4e45f7c9e8da64a9601eeba1231079c3ce0a6dc2
[Swift] Improving reallocation time by using memcpy and moving reallocation code to storage (#5960)

Removes stride

Use capacity - current size to initialize

Fixes memory leak

Updated test code for linux
swift/Sources/FlatBuffers/ByteBuffer.swift
swift/Sources/FlatBuffers/FlatBufferBuilder.swift
tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/XCTestManifests.swift