Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,7 @@ export class SwiftRuntime {

const writeString = (ptr: pointer, bytes: Uint8Array) => {
const uint8Memory = new Uint8Array(memory().buffer);
for (const [index, byte] of bytes.entries()) {
uint8Memory[ptr + index] = byte;
}
uint8Memory[ptr];
uint8Memory.set(bytes, ptr);
};

const readUInt32 = (ptr: pointer) => {
Expand Down