1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-05-30 07:36:10 +02:00

Added explanation text

This commit is contained in:
Jonas Tarnstrom 2013-06-11 08:10:34 +02:00
parent 4e4dc5e4cc
commit 08ff81a21d

View File

@ -62,6 +62,9 @@ or UTF-16 surrogate pairs
4 bytes input in UTF-8 => \uXXXX\uYYYY (12 bytes).
4 * 6 => 24 bytes (12 bytes required)
The extra 2 bytes are for the quotes around the string
*/
#define RESERVE_STRING(_len) (2 + ((_len) * 6))