blob: 974059242bdc0e4994a61ae22ba5d06f837e9493 [file] [log] [blame]
Zesstra87785842019-11-27 19:59:07 +01001SYNOPSIS
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
7DESCRIPTION
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
19HISTORY
20 Introduced in LDMud 3.6.0.
21
22SEE ALSO
23 to_text(E), to_string(E), to_array(E)