/** * Calculate new size of an arrayBuffer to be aligned to an n-byte boundary * This function increases `byteLength` by the minimum delta, * allowing the total length to be divided by `padding` * @param byteLength * @param padding */ export declare function padToNBytes(byteLength: number, padding: number): number; /** * Creates a new Uint8Array based on two different ArrayBuffers * @param targetBuffer The first buffer. * @param sourceBuffer The second buffer. * @return The new ArrayBuffer created out of the two. */ export declare function copyArrayBuffer(targetBuffer: ArrayBuffer, sourceBuffer: ArrayBuffer, byteOffset: number, byteLength?: number): ArrayBuffer; /** * Copy from source to target at the targetOffset * * @param source - The data to copy * @param target - The destination to copy data into * @param targetOffset - The start offset into target to place the copied data * @returns the new offset taking into account proper padding */ export declare function copyToArray(source: ArrayBuffer | any, target: any, targetOffset: number): number; //# sourceMappingURL=memory-copy-utils.d.ts.map