Skip to content

Commit

Permalink
Added explanation text
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Tarnstrom committed Jun 11, 2013
1 parent 4e4dc5e commit 08ff81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ultrajsonenc.c
Expand Up @@ -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))

Expand Down

0 comments on commit 08ff81a

Please sign in to comment.