1 #ifndef UTIL_SEQUTIL___SEQUTIL_SHARED__HPP
2 #define UTIL_SEQUTIL___SEQUTIL_SHARED__HPP
76 (pos > (container.size() * bases_per_byte) - 1) ) {
88 if ( container.size() < new_size ) {
89 container.resize(new_size);
100 if ( pos + length > container.size() * bases_per_byte ) {
101 length = (
TSeqPos)(container.size() * bases_per_byte - pos);
Include a standard set of the NCBI C++ Toolkit most basic headers.
unsigned int TSeqPos
Type for sequence locations and lengths.
const TSeqPos kInvalidSeqPos
Define special value for invalid sequence position.
uint8_t Uint1
1-byte (8-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_STD::string::size_type SIZE_TYPE
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
bool OutOfRange(TSeqPos pos, const C &container, CSeqUtil::TCoding coding)
SIZE_TYPE convert_1_to_4(const char *src, TSeqPos pos, TSeqPos length, char *dst, const Uint1 *table)
SIZE_TYPE copy_1_to_1_reverse(const char *src, TSeqPos pos, TSeqPos length, char *dst, const Uint1 *table)
SIZE_TYPE convert_1_to_2(const char *src, TSeqPos pos, TSeqPos length, char *dst, const Uint1 *table)
size_t GetBasesPerByte(CSeqUtil::TCoding coding)
SIZE_TYPE GetBytesNeeded(CSeqUtil::TCoding coding, TSeqPos length)
SIZE_TYPE convert_1_to_1(const char *src, TSeqPos pos, TSeqPos length, char *dst, const Uint1 *table)
void ResizeDst(C &container, CSeqUtil::TCoding coding, TSeqPos length)
void AdjustLength(C &container, CSeqUtil::TCoding coding, TSeqPos pos, TSeqPos &length)
SIZE_TYPE revcmp(char *buf, TSeqPos pos, TSeqPos length, const Uint1 *table)