FreeBSD/contrib/subversion/subversion/libsvn_fs_x/verify.c
/* Verify that the next SIZE bytes read from FILE are NUL.
 * Use SCRATCH_POOL for temporary allocations.
 */
Verify that the next SIZE bytes read from FILE are NUL.
Use SCRATCH_POOL for temporary allocations.
Verify that the next SIZE bytes read from FILE are NUL . Use SCRATCH_POOL for temporary allocations .
static svn_error_t *
read_all_nul(apr_file_t *file,
             apr_off_t size,
             apr_pool_t *scratch_pool)
{
  for (; size >= STREAM_THRESHOLD; size -= STREAM_THRESHOLD)
    SVN_ERR(expect_buffer_nul(file, STREAM_THRESHOLD, scratch_pool));
  if (size)
    SVN_ERR(expect_buffer_nul(file, size, scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * read_all_nul ( apr_file_t * file , apr_off_t size , apr_pool_t * scratch_pool ) { for ( ; size >= STREAM_THRESHOLD ; size -= STREAM_THRESHOLD ) SVN_ERR ( expect_buffer_nul ( file , STREAM_THRESHOLD , scratch_pool ) ) ; if ( size ) SVN_ERR ( expect_buffer_nul ( file , size , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Verify that the next SIZE bytes read from FILE are NUL.
Verify that the next SIZE bytes read from FILE are NUL .