Clarify (a V1.0 file might have a single zero byte at the end of the

page, which doesn't look like an "unused space" record because there
aren't two bytes of record type, just one byte).

svn path=/trunk/; revision=50027
This commit is contained in:
Guy Harris 2013-06-19 00:02:22 +00:00
parent 953d1bfd72
commit 52e9ee89fd
1 changed files with 7 additions and 2 deletions

View File

@ -42,8 +42,13 @@
* containing one or more records. The last page of the file
* might be less than 8K bytes.
*
* Records are not split across page boundaries. A page might have
* an "unused space" record at the end.
* Records are not split across page boundaries; if a record doesn't
* fit in what remains in a page, the page is padded with null bytes
* and the next record is put at the beginning of the next page.
* A record type value of 0 means "unused space", so if there are
* enough null bytes to constitute a record type value, it will
* look as if there's an "unused space" record (which has no fields
* other than the type and zero or more additional padding bytes).
*/
#define NSPR_PAGESIZE 8192