Zesstra | 8778584 | 2019-11-27 19:59:07 +0100 | [diff] [blame] | 1 | SYNOPSIS |
| 2 | bytes to_bytes(string unicode, string encoding) |
| 3 | bytes to_bytes(int* characters, string encoding) |
| 4 | bytes to_bytes(bytes bytesequence) |
| 5 | bytes to_bytes(int* bytes) |
| 6 | |
| 7 | DESCRIPTION |
| 8 | The first argument is converted to a byte sequence. |
| 9 | |
| 10 | The first two variants convert a unicode string resp. a sequence |
| 11 | of unicode characters to a byte sequence that represents |
| 12 | the encoded string. The second argument denotes the name of |
| 13 | the encoding to use. |
| 14 | |
| 15 | The third variant just returns the argument. |
| 16 | |
| 17 | The fourth variant converts an array of bytes to a byte string. |
| 18 | |
| 19 | HISTORY |
| 20 | Introduced in LDMud 3.6.0. |
| 21 | |
| 22 | SEE ALSO |
| 23 | to_text(E), to_string(E), to_array(E) |