FreeBSD/contrib/subversion/subversion/libsvn_fs_x/index.c
/* Read *ENTRY from log-to-phys PROTO_INDEX file and indicate end-of-file
 * in *EOF, or error out in that case if EOF is NULL.  *ENTRY is in an
 * undefined state if an end-of-file occurred.
 * Use SCRATCH_POOL for temporary allocations.
 */
Read *ENTRY from log-to-phys PROTO_INDEX file and indicate end-of-file
in *EOF, or error out in that case if EOF is NULL.  *ENTRY is in an
undefined state if an end-of-file occurred.
Use SCRATCH_POOL for temporary allocations.
Read * ENTRY from log - to - phys PROTO_INDEX file and indicate end - of - file in * EOF or error out in that case if EOF is NULL . * ENTRY is in an undefined state if an end - of - file occurred . Use SCRATCH_POOL for temporary allocations .
static svn_error_t *
read_p2l_entry_from_proto_index(apr_file_t *proto_index,
                                svn_fs_x__p2l_entry_t *entry,
                                svn_boolean_t *eof,
                                apr_pool_t *scratch_pool)
{
  SVN_ERR(read_off_t_from_proto_index(proto_index, &entry->offset,
                                      eof, scratch_pool));
  SVN_ERR(read_off_t_from_proto_index(proto_index, &entry->size,
                                      eof, scratch_pool));
  SVN_ERR(read_uint32_from_proto_index(proto_index, &entry->type,
                                       eof, scratch_pool));
  SVN_ERR(read_uint32_from_proto_index(proto_index, &entry->fnv1_checksum,
                                       eof, scratch_pool));
  SVN_ERR(read_uint32_from_proto_index(proto_index, &entry->item_count,
                                       eof, scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * read_p2l_entry_from_proto_index ( apr_file_t * proto_index , svn_fs_x__p2l_entry_t * entry , svn_boolean_t * eof , apr_pool_t * scratch_pool ) { SVN_ERR ( read_off_t_from_proto_index ( proto_index , & entry -> offset , eof , scratch_pool ) ) ; SVN_ERR ( read_off_t_from_proto_index ( proto_index , & entry -> size , eof , scratch_pool ) ) ; SVN_ERR ( read_uint32_from_proto_index ( proto_index , & entry -> type , eof , scratch_pool ) ) ; SVN_ERR ( read_uint32_from_proto_index ( proto_index , & entry -> fnv1_checksum , eof , scratch_pool ) ) ; SVN_ERR ( read_uint32_from_proto_index ( proto_index , & entry -> item_count , eof , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Read *ENTRY from log-to-phys PROTO_INDEX file and indicate end-of-file
 in *EOF, or error out in that case if EOF is NULL.
Read * ENTRY from log - to - phys PROTO_INDEX file and indicate end - of - file in * EOF or error out in that case if EOF is NULL .