mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
Updated API Text (markdown)
parent
db83bc6007
commit
1572ae3532
@ -9,7 +9,6 @@ This API provides some more general operations on strings and data serialization
|
||||
- `text.trim(value: string): string`
|
||||
Removes whitespace characters from the start and end of a string.
|
||||
- `text.serialize(value: any except functions): string`
|
||||
Generates a string from an object that can be parsed again using `text.unserialize`. The generated output is essentially Lua code. Supports basic types (nil, boolean, number, string) and tables without cycles (will error out when cycles are detected). Properly handles NaN values and infinity.
|
||||
This function can be useful for sending messages via a network card.
|
||||
Deprecated, use [[`serialization.serialize`|API/Serialization]].
|
||||
- `text.unserialize(value: string): any`
|
||||
Restores an object previously saved with `text.serialize`.
|
||||
Deprecated, use [[`serialization.unserialize`|API/Serialization]].
|
Loading…
x
Reference in New Issue
Block a user