I have two Uint8Arrays of length 32 bytes each and I want to merge them to one Uint8Array of length 64.
So my question is:
Is there a way to merge two TypedArrays to a new TypedArray of the same type in AssemblyScript.
I guess I'm looking for the equivalent of the TypedArray.set()
method in Javascript:
var c = new Uint8Array(Uint8Array_1.length + Uint8Array_2.length);
c.set(Uint8Array_1);
c.set(Uint8Array_2, Uint8Array_1.length);
Any hints are welcome!