[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
This commit is contained in:
mustiikhalil
2020-06-11 18:53:32 +03:00
committed by GitHub
parent 4e45f7c9e8
commit 7cb4762a61
3 changed files with 27 additions and 25 deletions

View File

@@ -36,6 +36,7 @@ extension FlatBuffersStructsTests {
("testCreatingVectorStructWithForcedDefaults", testCreatingVectorStructWithForcedDefaults),
("testReadingStruct", testReadingStruct),
("testReadingStructWithEnums", testReadingStructWithEnums),
("testWritingAndMutatingBools", testWritingAndMutatingBools),
]
}