Closed elijah-semyonov closed 1 month ago
Some quick observations:
final
seems to have changed in the public API:
From:
public final func start (mode: AESContext.Mode, key: PackedByteArray, iv: PackedByteArray = PackedByteArray())-> GodotError {
to:
public func start(mode: AESContext.Mode, key: PackedByteArray, iv: PackedByteArray = PackedByteArray()) -> GodotError {
It was a small nasty oversight! Already fixed in https://github.com/migueldeicaza/SwiftGodot/pull/553/commits/442045515711a053e31e860f8ba58e7eef61b6e1
Use nested
withUnsafePointer
so that Windows toolchain doesn't die. Utilize an ability ofwithUnsafePointer
to create its own internal copies. UsewithUnsafeTemporaryAllocation
for variadics. Use on-stack strategy when possible (non-variadics and empty variadics). Unify BuiltInGen and MethodGen generation. Lots of minor refactorings. Remove redundant Variant copies in some cases.