NCBI C++ ToolKit
Macros | Functions | Variables
ct_nlmzip_bits.cpp File Reference
#include <ncbi_pch.hpp>
#include "ct_nlmzip_i.h"
+ Include dependency graph for ct_nlmzip_bits.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define Buf_size   (8 * 2 * sizeof(char))
 

Functions

void Nlmzip_bi_init (void)
 
void Nlmzip_send_bits (int value, int length)
 
Uint4 Nlmzip_bi_reverse (Uint4 code, int len)
 
void Nlmzip_bi_windup (void)
 
void Nlmzip_copy_block (char *buf, Uint4 len, int header)
 

Variables

static unsigned short bi_buf
 
static int bi_valid
 

Macro Definition Documentation

◆ Buf_size

#define Buf_size   (8 * 2 * sizeof(char))

Definition at line 83 of file ct_nlmzip_bits.cpp.

Function Documentation

◆ Nlmzip_bi_init()

void Nlmzip_bi_init ( void  )

Definition at line 110 of file ct_nlmzip_bits.cpp.

References bi_buf, and bi_valid.

Referenced by Nlmzip_Compress().

◆ Nlmzip_bi_reverse()

Uint4 Nlmzip_bi_reverse ( Uint4  code,
int  len 
)

Definition at line 152 of file ct_nlmzip_bits.cpp.

References len.

Referenced by gen_codes(), and Nlmzip_ct_init().

◆ Nlmzip_bi_windup()

void Nlmzip_bi_windup ( void  )

Definition at line 174 of file ct_nlmzip_bits.cpp.

References bi_buf, bi_valid, Nlmzip_WriteByte(), and Nlmzip_WriteShort().

Referenced by Nlmzip_copy_block(), and Nlmzip_flush_block().

◆ Nlmzip_copy_block()

void Nlmzip_copy_block ( char *  buf,
Uint4  len,
int  header 
)

Definition at line 193 of file ct_nlmzip_bits.cpp.

References buf, len, Nlmzip_bi_windup(), Nlmzip_WriteByte(), and Nlmzip_WriteShort().

Referenced by Nlmzip_flush_block().

◆ Nlmzip_send_bits()

void Nlmzip_send_bits ( int  value,
int  length 
)

Variable Documentation

◆ bi_buf

unsigned short bi_buf
static

Definition at line 92 of file ct_nlmzip_bits.cpp.

Referenced by Nlmzip_bi_init(), Nlmzip_bi_windup(), and Nlmzip_send_bits().

◆ bi_valid

int bi_valid
static

Definition at line 97 of file ct_nlmzip_bits.cpp.

Referenced by Nlmzip_bi_init(), Nlmzip_bi_windup(), and Nlmzip_send_bits().

Modified on Fri Jan 05 07:26:37 2024 by modify_doxy.py rev. 669887