We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2df543 commit 1e571b4Copy full SHA for 1e571b4
Runtime/src/index.ts
@@ -222,10 +222,7 @@ export class SwiftRuntime {
222
223
const writeString = (ptr: pointer, bytes: Uint8Array) => {
224
const uint8Memory = new Uint8Array(memory().buffer);
225
- for (const [index, byte] of bytes.entries()) {
226
- uint8Memory[ptr + index] = byte;
227
- }
228
- uint8Memory[ptr];
+ uint8Memory.set(bytes, ptr);
229
};
230
231
const readUInt32 = (ptr: pointer) => {
0 commit comments