Skip to content

Commit df6ffe5

Browse files
authored
Merge pull request #50 from ngtcp2/update-doc
Update doc
2 parents a2f6c4a + 0038d6f commit df6ffe5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

sfparse.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ typedef struct sf_parser {
243243
/**
244244
* @function
245245
*
246-
* `sf_parser_init` initializes |sfp| with the given buffer pointed by
247-
* |data| of length |datalen|.
246+
* `sf_parser_init` initializes |sfp| with the given data encoded in
247+
* Structured Field Values pointed by |data| of length |datalen|.
248248
*/
249249
void sf_parser_init(sf_parser *sfp, const uint8_t *data, size_t datalen);
250250

@@ -378,7 +378,9 @@ int sf_parser_inner_list(sf_parser *sfp, sf_value *dest);
378378
* `sf_parser_param`, otherwise the behavior is undefined.
379379
*
380380
* :member:`dest->base <sf_vec.base>` must point to the buffer that
381-
* has sufficient space to store the unescaped string.
381+
* has sufficient space to store the unescaped string. The memory
382+
* areas pointed by :member:`dest->base <sf_vec.base>` and
383+
* :member:`src->base <sf_vec.base>` must not overlap.
382384
*
383385
* This function sets the length of unescaped string to
384386
* :member:`dest->len <sf_vec.len>`.
@@ -414,7 +416,9 @@ void sf_base64decode(sf_vec *dest, const sf_vec *src);
414416
* otherwise the behavior is undefined.
415417
*
416418
* :member:`dest->base <sf_vec.base>` must point to the buffer that
417-
* has sufficient space to store the decoded byte string.
419+
* has sufficient space to store the decoded byte string. The memory
420+
* areas pointed by :member:`dest->base <sf_vec.base>` and
421+
* :member:`src->base <sf_vec.base>` must not overlap.
418422
*
419423
* This function sets the length of decoded byte string to
420424
* :member:`dest->len <sf_vec.len>`.

0 commit comments

Comments
 (0)