bytes_of
lib callCapy
function bytes_of(value : string) [u8]
Description
bytes_of() copies a string into a new byte array.
The function keeps zero bytes and returns each byte as a u8 value.
Parameters
value : a string
Return Values
A byte array with the same bytes as value.
Example
Capy
var bytes := bytes_of("ABC")
print(bytes[0], bytes[1], bytes[2], "\n")