StringFromBytes?
BlitzMax Forums/BlitzMax Programming/StringFromBytes?
| ||
This is in the docs in the IncbinPtr and IncbinLen commands but it doesn't seem to exist for me. Does anyone know what the alternative is? I haven't got a clue when it comes to using pointers so I haven't got much of a chance of finding a different way to do it (what ever this command was actually meant to do - I haven't got a clue about that either :P) Thanks Matt |
| ||
You are using String.FromBytes rather than StringFromBytes aren't you? The IncbinPtr example is saying... 1) Incbin a .bmx file... OK 2) Save a ptr address to (e.g. address of ) that file in p (in byte format) 3) Save the length of the file in bytes. 4) Convert the data from the ptr address for a length of 'bytes' bytes into a string and display it so we can read it. |
| ||
Oh right. The example had it without the . and I assumed that was how it was meant to be. Many thanks! |