-I:Berkeley DB Reference Guide: Access Methods[P4

Berkeley DB Reference Guide: Access Methods



@

Record padding byte value (re_pad, DB_PAD)



>The Recno access method can be used to store both variable andAfixed-length data items. By default, the data items are expectedmto be variable length. If the DB_FIXEDLEN flag is setWin the DB_INFO structure during the db_open callEto open the database, the data items are expected to be fixed-length.

BWhen storing fixed length records in the database, a pad characteremay be specified by setting the DB_PAD flag and thekre_pad element of the DB_INFO structure. Any record readPfrom the backing source file or otherwise stored inHthe database that is shorter than the expected length will automaticallybe padded with this character.

HIf fixed-length records are specified but no pad character is specified,Ga space character (i.e., 0x20 in the ASCII character set) will be used.

HAKÿÿ