you want to convert a string to a bytearray or a font file to a byte array?
Hey guys, I was just wondering how to convert a font into a byte array, I know it is possible and I created a program which converts a string into a byte array, but I wiped my hard drive and forgot to back it up, as I do not have time to create another I am asking if you guys know another way.
Last edited by arun823; 10-13-2012 at 12:04 PM.
Reversing is the only way to move forward.
you want to convert a string to a bytearray or a font file to a byte array?
Saltine (10-13-2012)
a String kinda is an array of chars in ascii and a char is a signed byte
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
Create and array type byte the length of the string, and then iterate through the string from index 0 to length-1, casting each char to a byte and storing it in the equal index of the byte array.
/solved
Oh no! Vortex is gay!
[MPGH]Flengo (10-13-2012)
^
/Solved
/Closed
.
Member Since: 20/02/2011
Donator Since: 12/08/2011
Minion Since: 04/10/2012