src/vs/editor/common/tokens/contiguousTokensEditing.ts/toUint32Array
export function toUint32Array(arr: Uint32Array | ArrayBuffer): Uint32Array {
	if (arr instanceof Uint32Array) {
		return arr;
	} else {
		return new Uint32Array(arr);
	}
}