欢迎图片

Changes for page Lua Script

Last modified by xingzhi lin on 2025/11/03 11:23

From version 1.1
edited by Wecon
on 2025/09/03 21:03
Change comment: Imported from XAR
To version 3.3
edited by xingzhi lin
on 2025/09/24 10:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Wecon
1 +XWiki.lxz
Content
... ... @@ -580,7 +580,7 @@
580 580  
581 581  == [[we_bas_getstring>>||anchor="HAddressclass"]] ==
582 582  
583 -Prototype: we_bas_getstring(address, len)
583 +Prototype: we_bas_getstring(address, len [, type, element4, element5, element6])
584 584  
585 585  Function: Read string
586 586  
... ... @@ -588,7 +588,32 @@
588 588  
589 589  * address(string):address
590 590  * len(number):length,Unit: byte
591 +* type(number):type,type=1 is write-through
592 +* element4:element
591 591  
594 +|(% style="width:203px" %)Value|(% style="width:967px" %)Describe
595 +|(% style="width:203px" %)0|(% style="width:967px" %)Default
596 +|(% style="width:203px" %)1|(% style="width:967px" %)Forced prohibition of the use of the high-order function
597 +|(% style="width:203px" %)2|(% style="width:967px" %)Enable high and low character swapping
598 +|(% style="width:203px" %)3|(% style="width:967px" %)Enable high and low byte swapping
599 +|(% style="width:203px" %)4|(% style="width:967px" %)Gbk text, normal setting
600 +|(% style="width:203px" %)5|(% style="width:967px" %)Gbk text, the first byte is the string length
601 +|(% style="width:203px" %)6|(% style="width:967px" %)Endian-reversed type1: 12345678 -> 87654321
602 +|(% style="width:203px" %)7|(% style="width:967px" %)Endian-reversed type2: 12345678 -> 78563412
603 +|(% style="width:203px" %)8|(% style="width:967px" %)Endian-reversed type3: 12345678 -> 56781234
604 +|(% style="width:203px" %)9|(% style="width:967px" %)Endian-reversed type4: 12345678 -> 65872143
605 +|(% style="width:203px" %)10|(% style="width:967px" %)Endian-reversed type5: 12345678 -> 43218765
606 +|(% style="width:203px" %)11|(% style="width:967px" %)Characters are stored in one word
607 +|(% style="width:203px" %)12|(% style="width:967px" %)Unicode text
608 +
609 +* element5:element
610 +
611 +
612 +
613 +* element6:element
614 +
615 +
616 +
592 592  Return:
593 593  
594 594  * Success: the designated length of the string
... ... @@ -4357,7 +4357,7 @@
4357 4357  Parameters:
4358 4358  
4359 4359  * ssid(string) hotspot name format: length 1~~32 bytes
4360 -* Passwd(streing) hotspot password format: length is 0 or greater 8
4385 +* passwd(streing) hotspot password format: length is 0 or greater 8
4361 4361  
4362 4362  Return:
4363 4363