DB_ReadRecord

This function reads a record from the disk (or ROM, if ROM support is being used). The record read is of type recordtype. Recordnum is used to index the recordnum-th record of that type. The record is read into dest (up to a maximum size of bufsize). The actual number of bytes read is returned in sizeread, and is equal to the record size unless the record has been truncated (in which case, sizeread will equal bufsize--comparing the returned size with the size returned by DB_RecordSize is the only way to detect truncation).