How to place char* of stringZ to ubyte[]?

denizzzka 4denizzz at gmail.com
Mon Oct 29 10:11:41 PDT 2012


immutable ubyte[] valueBin = cast(immutable(ubyte[])) 
toStringz(s); // s is string type

Error: e2ir: cannot cast toStringz(s) of type immutable(char)* to 
type immutable(ubyte[])





More information about the Digitalmars-d-learn mailing list