Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
Update records.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed May 27, 2015
1 parent 6d06c35 commit d81e850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/records.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ unsigned char *buf = ec_record_data(r);

Quickly get or create a record-backed buffer of at least `length` bytes. Returns NULL on error.

If the record already exists, but the buffer is smaller than `length`, this is considered an error. Otherwise, the existing record is used as-is without alteration, and the data buffer is returned.
If the record already exists, but the buffer is smaller than `length`, or some of the `flags` are unset, this is considered an error. Otherwise, the existing record is used as-is without alteration, and the data buffer is returned.

If the record does not exist, then a new record is created with a zero-initialised buffer of the desired length, and `flags` will be added to the default.

Expand Down

0 comments on commit d81e850

Please sign in to comment.