(str, outPtr, maxBytesToWrite)
| 861 | // Returns the number of bytes written, EXCLUDING the null terminator. |
| 862 | |
| 863 | function stringToUTF8(str, outPtr, maxBytesToWrite) { |
| 864 | return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite); |
| 865 | } |
| 866 | |
| 867 | |
| 868 | // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte. |
no test coverage detected
searching dependent graphs…