eccLib 1.1.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
FastaBuff.h File Reference

Contains the definition of the FastaBuff object. More...

#include <Python.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for FastaBuff.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FastaBuff
 A buffer that holds packed uint4 FASTA data. More...
 

Macros

#define FastaBuff_Check(op)   PyObject_TypeCheck(op, &FastaBuffType)
 Checks if the object is an instance of the FastaBuff type.
 

Functions

FastaBuffFastaBuff_new (uint8_t *restrict buff, size_t buffSize, size_t buffLen, bool RNA)
 Creates a new FastaBuff object.
 

Variables

PyTypeObject FastaBuffType
 The Python type definition for the FastaBuff object.
 

Detailed Description

Contains the definition of the FastaBuff object.

Macro Definition Documentation

◆ FastaBuff_Check

#define FastaBuff_Check (   op)    PyObject_TypeCheck(op, &FastaBuffType)

Checks if the object is an instance of the FastaBuff type.

Parameters
opthe object to check
Returns
1 if the object is an instance of the FastaBuff type, 0 otherwise

Function Documentation

◆ FastaBuff_new()

FastaBuff * FastaBuff_new ( uint8_t *restrict  buff,
size_t  buffSize,
size_t  buffLen,
bool  RNA 
)

Creates a new FastaBuff object.

Parameters
buffthe buffer to use, this will be owned by the FastaBuff object
buffSizethe size of the buffer
buffLenthe length of the sequence
RNAif true, T will be converted to U
Here is the caller graph for this function: