Skip to content

Latest commit

 

History

History
78 lines (65 loc) · 7.81 KB

cp.plist.md

File metadata and controls

78 lines (65 loc) · 7.81 KB

docs » cp.plist


Reads & Writes plist data.

Submodules

API Overview

API Documentation

Functions

| Signature | cp.plist.base64ToTable(base64Data) -> table | nil, errorMessage | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts base64 encoded Property List string into a Table. | | Parameters |

  • base64Data - Binary data encoded in base64 as a string
| | Returns |
  • A table of the plist data
  • A error message as string if an error occurs
|

| Signature | cp.plist.binaryFileToTable(plistFileName) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts the data from a Binary File into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the Binary File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.binaryFileToXML(plistFileName) -> string | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts the data from a Binary plist File into XML as a string. | | Parameters |

  • plistFileName - Path & Filename of the Binary File
| | Returns |
  • data - A string of XML data
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.binaryToTable(binaryData) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts Binary Data into a LUA Table. | | Parameters |

  • binaryData - Binary data
| | Returns |
  • data - A string of XML data
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.fileToTable(plistFileName) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts plist data from a binary or XML file into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the XML File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|

Signature cp.plist.isBinaryPlist(plistList) -> boolean
Type Function
Description Returns true if plistList is a binary plist file otherwise false
Parameters
  • plistList - Path to the file
Returns
  • Boolean

| Signature | cp.plist.xmlFileToTable(plistFileName) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts XML data from a file into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the XML File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|