FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/id.c
/* Deserialize an ID inside the BUFFER.
 */
Deserialize an ID inside the BUFFER.
Deserialize an ID inside the BUFFER .
void
svn_fs_fs__id_deserialize(void *buffer, svn_fs_id_t **in_out)
{
  fs_fs__id_t *id;
  if (*in_out != buffer)
    svn_temp_deserializer__resolve(buffer, (void**)in_out);
  id = (fs_fs__id_t *)*in_out;
  if (id == NULL)
    return;
  id->generic_id.vtable = &id_vtable;
  id->generic_id.fsap_data = id;
}
void svn_fs_fs__id_deserialize ( void * buffer , svn_fs_id_t * * in_out ) { fs_fs__id_t * id ; if ( * in_out != buffer ) svn_temp_deserializer__resolve ( buffer , ( void * * ) in_out ) ; id = ( fs_fs__id_t * ) * in_out ; if ( id == NULL ) return ; id -> generic_id . vtable = & id_vtable ; id -> generic_id . fsap_data = id ; }
Deserialize an ID inside the BUFFER.
Deserialize an ID inside the BUFFER .
/* The id maybe all what is in the whole buffer.
   * Don't try to fixup the pointer in that case*/ /* no id, no sub-structure fixup necessary */ /* the stored vtable is bogus at best -> set the right one */