mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-19 00:29:49 +00:00
update
This commit is contained in:
parent
b5a1a4c25c
commit
e918afc150
1 changed files with 3 additions and 0 deletions
|
@ -995,6 +995,9 @@ function uint8ArrayToHexReverseString(uint8Array) {
|
|||
}
|
||||
|
||||
function hexReverseStringToUint8Array(hexReverseString) {
|
||||
if(hexReverseString.length % 2 !== 0){
|
||||
hexReverseString = "0" + hexReverseString
|
||||
}
|
||||
const packet = new Uint8Array(hexReverseString.length / 2);
|
||||
let offset = 0;
|
||||
[...(hexReverseString.matchAll(/[0-9a-f]{2}/g))].reverse().map(e => {
|
||||
|
|
Loading…
Add table
Reference in a new issue