So, adding some code example, can I convert the string to upper case then convert it to ubyte[] without memory allocation? something like this:
import xxhash; import std.uni : asUpperCase; uint hash = xxhashOf(cast(ubyte[])(word.asUpperCase));
Dr.No via Digitalmars-d-learn Tue, 01 May 2018 13:15:37 -0700
So, adding some code example, can I convert the string to upper case then convert it to ubyte[] without memory allocation? something like this:
import xxhash; import std.uni : asUpperCase; uint hash = xxhashOf(cast(ubyte[])(word.asUpperCase));