eccLib 1.3.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.
 
PyObject * FastaBuff_getSubscript (FastaBuff *restrict self, PyObject *restrict key)
 Gets a subsequence of the FastaBuff.
 
uint8_t FastaBuff_getItem (FastaBuff *self, Py_ssize_t index)
 Gets an item from the FastaBuff.
 

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