sourcepawn/include/sp_vm_api.h
changeset 183 78488edd8873
parent 179 628bdadc9b32
child 184 ecd216d00146
     1.1 --- a/sourcepawn/include/sp_vm_api.h	Sun Nov 12 02:27:27 2006 +0000
     1.2 +++ b/sourcepawn/include/sp_vm_api.h	Sun Nov 12 09:51:39 2006 +0000
     1.3 @@ -216,10 +216,10 @@
     1.4  		 * Converts a physical string to a local address.
     1.5  		 *
     1.6  		 * @param local_addr	Local address in plugin.
     1.7 -		 * @param chars			Number of chars to write, including NULL terminator.
     1.8 +		 * @param bytes			Number of chars to write, including NULL terminator.
     1.9  		 * @param source		Source string to copy.
    1.10  		 */
    1.11 -		virtual int StringToLocal(cell_t local_addr, size_t chars, const char *source) =0;
    1.12 +		virtual int StringToLocal(cell_t local_addr, size_t bytes, const char *source) =0;
    1.13  
    1.14  		/**
    1.15  		* Converts a physical UTF-8 string to a local address.
    1.16 @@ -229,9 +229,12 @@
    1.17  		* @param local_addr		Local address in plugin.
    1.18  		* @param maxbytes		Number of bytes to write, including NULL terminator.
    1.19  		* @param source			Source string to copy.
    1.20 -		* @param wrtnbytes		Optionally filled with the number of written bytes.
    1.21 +		 * @param wrtnbytes		Optionally set to the number of actual bytes written.
    1.22  		*/
    1.23 -		virtual int StringToLocalUTF8(cell_t local_addr, size_t maxbytes, const char *source, size_t *wrtnbytes) =0;
    1.24 +		virtual int StringToLocalUTF8(cell_t local_addr, 
    1.25 +									  size_t maxbytes, 
    1.26 +									  const char *source, 
    1.27 +									  size_t *wrtnbytes) =0;
    1.28  
    1.29  		/**
    1.30  		 * Pushes a cell onto the stack.  Increases the parameter count by one.