Dokumentation zu: to_bytes(E)

HR Image

        bytes to_bytes(string unicode, string encoding)
        bytes to_bytes(int* characters, string encoding)
        bytes to_bytes(bytes bytesequence)
        bytes to_bytes(int* bytes)

        The first argument is converted to a byte sequence.

        The first two variants convert a unicode string resp. a sequence
        of unicode characters to a byte sequence that represents
        the encoded string. The second argument denotes the name of
        the encoding to use.

        The third variant just returns the argument.

        The fourth variant converts an array of bytes to a byte string.

        Introduced in LDMud 3.6.0.

        to_text(E), to_string(E), to_array(E), unicode(C), encodings(C)

Start » Magierhandbuch » Docu » Efun » To_bytes Letzte Generierung: 25.04.2021, 01:58
Email an:
Valid HTML 4.01!