export function combineUint8Arrays( a: Uint8Array, b: Uint8Array, ): Uint8Array { const aLength = a.length; const combinedBytes = new Uint8Array(aLength + b.length); combinedBytes.set(a); combinedBytes.set(b, aLength); return combinedBytes; }