encode

encodes data and returns as an ASCII hex string.

  1. char[] encode(ubyte[] data, char[] buff)
  2. char[] encode(ubyte[] data)
    char[]
    encode
    (
    ubyte[] data
    )

Parameters

data ubyte[]

what is to be encoded

Examples

char[] myEncodedString = encode(cast(ubyte[])"Hello, how are you today?");
Stdout(myEncodedString).newline; // 48656C6C6F2C20686F772061726520796F7520746F6461793F

Meta