hmmer-3.3/easel/esl_sqio_ncbi.c
/* Function:  parse_peek()
 * Synopsis:  Peek at the next byte to parse
 * Incept:    MSF, Mon Dec 10, 2009 [Janelia]
 *
 * Purpose:   Return the next characer to be parsed without advancing the
 *            parsers pointer.
 *
 * Returns:   <eslOK> on success
 *            <eslEFORMAT> if there are insufficient bytes remaining
 *            in the header.
 */
parse_peek()
Synopsis:  Peek at the next byte to parse
Incept:    MSF, Mon Dec 10, 2009 [Janelia]

Return the next characer to be parsed without advancing the
parsers pointer.

 on success
 if there are insufficient bytes remaining
in the header.
parse_peek () Synopsis : Peek at the next byte to parse Incept : MSF Mon Dec 10 2009 [ Janelia ] Return the next characer to be parsed without advancing the parsers pointer . on success if there are insufficient bytes remaining in the header .
static int
parse_peek(ESL_SQNCBI_DATA *ncbi, unsigned char *c)
{
  int size;
  unsigned char *limit;
  size  = ncbi->hoff - ncbi->roff;
  limit = ncbi->hdr_buf + size;
  if (ncbi->hdr_ptr + 1 > limit)    return eslEFORMAT;
  *c = *ncbi->hdr_ptr;
  return eslOK;
}
static int parse_peek ( ESL_SQNCBI_DATA * ncbi , unsigned char * c ) { int size ; unsigned char * limit ; size = ncbi -> hoff - ncbi -> roff ; limit = ncbi -> hdr_buf + size ; if ( ncbi -> hdr_ptr + 1 > limit ) return eslEFORMAT ; * c = * ncbi -> hdr_ptr ; return eslOK ; }
Function:  parse_peek()
 Synopsis:  Peek at the next byte to parse
 Incept:    MSF, Mon Dec 10, 2009 [Janelia]
Function : parse_peek () Synopsis : Peek at the next byte to parse Incept : MSF Mon Dec 10 2009 [ Janelia ]
/* verify the buffer has atleast len bytes remaining */