Difference between revisions of "Lua:byteTableToWideString"
Jump to navigation
Jump to search
(Created page with ''''function''' byteTableToWideString(''Table'') Converts a byte table to a widestring and converts that to a string. === Function Parameters === {|width="85%" cellpadding="10%…') |
m (moved byteTableToWideString to Lua:byteTableToWideString) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | '''function''' byteTableToWideString(''Table'') | + | [[Category:Lua]] |
+ | '''function''' byteTableToWideString(''Table'') ''':''' string | ||
Converts a byte table to a widestring and converts that to a string. | Converts a byte table to a widestring and converts that to a string. | ||
Line 26: | Line 27: | ||
− | + | {{LuaSeeAlso}} | |
− | |||
− | |||
=== Related Functions === | === Related Functions === | ||
− | * [[ | + | * [[ansiToUtf8]] |
− | * [[ | + | * [[utf8ToAnsi]] |
− | * [[ | + | * [[translate]] |
− | + | {{ReadWriteMemory}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 00:08, 25 January 2018
function byteTableToWideString(Table) : string
Converts a byte table to a widestring and converts that to a string.
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
Table | table | The table of bytes to convert |
Examples[edit]
Code:
local bt = { 0x74, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74, 0x00, 0x00, 0x00 } local value = byteTableToWideString(bt) print(value)
Output:
test
See also[edit]
Related Functions[edit]
- ansiToUtf8
- utf8ToAnsi
- translate
- readBytes
- readSmallInteger
- readInteger
- readQword
- readPointer
- readFloat
- readDouble
- readString
- writeBytes
- writeSmallInteger
- writeInteger
- writeQword
- writeFloat
- writeDouble
- writeString
- readBytesLocal
- readIntegerLocal
- readQwordLocal
- readPointerLocal
- readFloatLocal
- readDoubleLocal
- readStringLocal
- writeBytesLocal
- writeIntegerLocal
- writeQwordLocal
- writeFloatLocal
- writeDoubleLocal
- writeStringLocal
- wordToByteTable
- dwordToByteTable
- qwordToByteTable
- floatToByteTable
- doubleToByteTable
- stringToByteTable
- wideStringToByteTable
- byteTableToWord
- byteTableToDword
- byteTableToQword
- byteTableToFloat
- byteTableToDouble
- byteTableToString
- byteTableToWideString