This commit is contained in:
2025-11-02 19:17:20 +08:00
parent ebf784146e
commit e71b69db5f
2575 changed files with 1242294 additions and 95 deletions

View File

@@ -0,0 +1,23 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function toUint8(v) {
if (v < 0) {
return 0;
}
if (v > 255 /* Constants.MAX_UINT_8 */) {
return 255 /* Constants.MAX_UINT_8 */;
}
return v | 0;
}
export function toUint32(v) {
if (v < 0) {
return 0;
}
if (v > 4294967295 /* Constants.MAX_UINT_32 */) {
return 4294967295 /* Constants.MAX_UINT_32 */;
}
return v | 0;
}
//# sourceMappingURL=uint.js.map