@link http://www.python.org
Constructor.
| Parameters: | array|Traversable|PythonPickleOptions – Optional |
|---|
Set options
| Parameters: | array|Traversable|PythonPickleOptions – |
|---|---|
| Return type: | PythonPickle |
Serialize PHP to PythonPickle format
| Parameters: | mixed – |
|---|---|
| Return type: | string |
Write a value
| Parameters: | mixed – |
|---|---|
| Throws ExceptionRuntimeException: | |
| on invalid or unrecognized value type | |
Write an associative array value as dictionary
| Parameters: | array|Traversable – |
|---|
Add a value to the memo and write the id
| Parameters: | mixed – |
|---|
Search a value in the memo and return the id
| Parameters: | mixed – |
|---|---|
| Return type: | int|bool The id or false |
Quote/Escape a string
| Parameters: | string – |
|---|---|
| Return type: | string quoted string |
Unserialize from Python Pickle format to PHP
| Parameters: | string – |
|---|---|
| Return type: | mixed |
| Throws : | ExceptionRuntimeException on invalid Pickle string |
Load a pickle opcode
| Parameters: | string – |
|---|---|
| Throws ExceptionRuntimeException: | |
| on invalid opcode | |
Convert a unicode sequence to UTF-8
| Parameters: | array – |
|---|---|
| Return type: | string |
Convert a hex string to a UTF-8 string
| Parameters: | string – |
|---|---|
| Return type: | string |
| Throws : | ExceptionRuntimeException on unmatched unicode sequence |
Read a segment of the pickle
| Parameters: | mixed – |
|---|---|
| Return type: | string |
| Throws : | ExceptionRuntimeException if position matches end of data |
Read a line of the pickle at once
| Return type: | string |
|---|---|
| Throws : | ExceptionRuntimeException if no EOL character found |
Pickle opcodes. See pickletools.py for extensive docs.