Changed StringToLocal to work with real strings

moved out two .b opcodes out of the ungenerated group since now are needed for strings

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40160
This commit is contained in:
Borja Ferrer
2006-11-07 13:06:04 +00:00
parent 2348f9106a
commit 453f0db476
8 changed files with 70 additions and 91 deletions
+3 -5
View File
@@ -204,17 +204,15 @@ namespace SourcePawn
*/
virtual int LocalToPhysAddr(cell_t local_addr, cell_t **phys_addr) =0;
/**
/**:TODO: FIX ALL PACKED STUFF COMMENTS!
* Converts a local address to a physical string.
* Note that SourcePawn does not support packed strings, as such this function is
* 'cell to char' only.
*
* @param local_addr Local address in plugin.
* @param buffer Destination output buffer.
* @param maxlength Maximum length of output buffer, including null terminator.
* @param chars Optionally filled with the number of characters written.
* @param addr Destination output pointer.
*/
virtual int LocalToString(cell_t local_addr, char *buffer, size_t maxlength, int *chars) =0;
virtual int LocalToString(cell_t local_addr, char **addr) =0;
/**
* Converts a physical string to a local address.