repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/suftest2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
suftest2.c
Written by G. Manzini using the suftest.c code
by N. Jesper Larsson (Copyright N. Jesper Larsson 1999)
Program to test a suffix sorting function. Reads a sequence of bytes from
a file and calls the deep/shallo... | 14,557 | 29.266112 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/shallow.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
shallow.c
This is the multikey quicksort from bentley-sedgewick modified
so that it stops recursion when depth reaches Shallow_limit
(that is when two or more suffixes have Shallow_limit chars in common).
>>>>>>>>>>>>>>>>>>>>>>>>>>>>... | 17,681 | 30.295575 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/blind2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
string sorting routine based on a blind tree
26-jun-01 ver 1.0
03-jul-01 ver 1.1 (get rid of node header)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "common.h"
/* ========... | 12,408 | 26.698661 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/lcp_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
lcp_aux.c
Ver 1.0 28-apr-2004
Functions for lightweight computation of the LCP array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free software; you can redistribute it and/or modify
it under the term... | 9,930 | 33.96831 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/deep2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
deep.c
"deep" sorting routines
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "common.h"
/* ------ external global variables ------- */
extern UChar *Text; ... | 6,736 | 26.72428 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/unbwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unbwt.c
Ver 1.0 6-oct-02
compute the inverse bwt.
The input file must be in the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
The procedure currently uses 5N bytes.
Copyright (C) 2002 Giovanni Manzini ... | 8,673 | 27.162338 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/ds.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ds.c
deep-shallow sorting algorithm. these routines are taken mainly by
Seward's d_copyEQ_u12.c
Buckets are sorted one at a time; when bucket Y is completely sorted
(except for YY) "pointer copying" is used to sort small buckets of ... | 9,364 | 30.32107 | 81 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/testlcp.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
testlcp.c
Ver 1.0 9-dec-03
Ver 1.1 28-apr-04 (uses bwt_aux)
Ver 1.2 28-may-04 (uses lcp_aux)
Test algorithms for computing the lcp array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is fr... | 9,432 | 29.041401 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt.c
Ver 1.0 14-oct-02
compute the bwt using the ds_ssort routines
The output file has the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This ... | 7,068 | 29.339056 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/lcp_aux.h |
// prototypes of the lcp construction procedures defined in
// bwtlcp.a (source files lcp_aux.c lcp5_aux.c)
// before including this file you must first include bwt_aux.h
int *_lcp_sa2lcp_13n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9125n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9n(uint8 *t, int n, int *sa, int... | 512 | 35.642857 | 62 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/common.h | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
global defintion for the ds suffix-sort algorithm
Giovanni Manzini
2-apr 2001
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
/* ----------- use assertion if DEBUG!=0 ------------- */
#ifndef DEBUG
#define DEBUG 1 /* set DEBUG to 0 to remove ... | 1,434 | 23.322034 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/globals.c | /* *******************************************************************
globals.c
Ver 1.0 14-oct-02
This file contains the definition of the global variables
which can be defined by the user + some relate procedures
******************************************************************* */
#include <stdio.... | 3,873 | 28.12782 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt_aux.c
Ver 1.0 3-mar-2004
Functions for computing and transforming various representations
of text and suffix array: t/sa/rank_next/rank_prev/bwt
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free so... | 9,373 | 26.014409 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt_aux.h | #define _BW_ALPHA_SIZE 256
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef int int32;
// ---- struct containing the (uncompressed) bwt
typedef struct {
uchar *bwt;
int size;
int eof_pos;
} bwt_data;
// prototypes of bwt procedures defined in bwtlcp.a
void _bw_sa2bwt(uchar *t, int32 n, int3... | 912 | 31.607143 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/compressor.h | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "interfazTextCompressorDocs.h"
#define COMPRESSED_REPRESENTATION_EXT_FILE "compRepresentation"
typedef struct {
unsigned int *docBeginnings;
unsigned int numdocs;... | 2,416 | 32.109589 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/compressor.c | #include "compressor.h"
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection ... | 4,656 | 33.753731 | 103 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/bitrankw32int.h | /* bitarray.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foun... | 2,028 | 29.283582 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/RepairPost.h |
#ifndef REPAIRDECOMPRESSOR
#define REPAIRDECOMPRESSOR
#include <iostream>
#include <cassert>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "bitrankw32int.h"
#include "basic.h"
using namespace std;
class RepairPost {
public:
unsigned char *text;
unsigned long textSize;
unsigned long b... | 1,529 | 21.173913 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/interfazTextCompressorDocs.h |
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection of text documents
who... | 2,009 | 39.2 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/hashWords.h | /*-----------------------------------------------------------------------
Hash: Definition of HashTable class (Linear Hash)
------------------------------------------------------------------------*/
#ifndef HASHWORDSINCLUDED
#define HASHWORDSINCLUDED
#include <string.h>
#include <stdlib.h>
#include <math.h>
#in... | 2,564 | 29.903614 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/parseparamsII.c | /***********************************************************************************/
/*** FUNCTIONS USED FOR PARSING PARAMETERS FROM COMMAND LINE ***********************/
/* Three function to variables to manage parameters */
static bool is_delimeter_II(char *delimiters, char c) {
int i=0,len_delimiters=strlen(deli... | 1,529 | 33.772727 | 107 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/scdc.h |
////////////////// Dense Codes ////////////////
#ifndef byte
#define byte unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif
#ifndef ulong
#define ulong unsigned long
#endif
#include "valstring.h"
void initializeSC_baseTable (uint s);
uint decodeETDC (byte *etdc, register uint pos, uint *num)... | 1,029 | 28.428571 | 132 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/mergeoccs2docs.c | #include "mergeoccs2docs.h"
/** *****************************************************************************/
/** Translates absolute occs[] into docs[] positions. So union of occs in the same doc
/** *****************************************************************************/
/* For each occ[i], finds its corr... | 4,601 | 23.094241 | 107 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/scdc.c | #include "scdc.h"
////////////////// Dense Codes ////////////////
uint SS,CC;
uint TABLABASE[5]; // = {0,128,16512,2113664,270549120};
void initializeSC_baseTable (uint s){
uint c = 256 - s;
TABLABASE[0] = 0;
TABLABASE[1] = s;
TABLABASE[2] = TABLABASE[1] + s * c;
TABLABASE[3] = TABLABASE[2] + s * c*c;
TABLAB... | 2,760 | 26.068627 | 131 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/defValues.h | #ifndef DEFVALUES_INCLUDED
#define DEFVALUES_INCLUDED
#define MAX_SIZE_OF_WORD 32768 //255 //size of word
//for queries
#define MAX_INTEGER_PATTERN_SIZE 30
#define MAX_TEXT_PATTERN_SIZE 100 //maximum number of valid words in a searched pattern
#define MAX_PATTERN_CODE_SIZE 100 * 20 //maximum number of bytes o... | 1,060 | 24.878049 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/mergeoccs2docs.h |
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
/* Translates occs-2-doc-ids */
/* occ(1+log(docs/occ) */
/* occ log(docs) o sino pagar occ(1+log(docs/occ)+log(occ))=occ log(docs) */
/** :: some public funcions in this module:: ------------------------------------
*/
/** **************************... | 2,634 | 46.053571 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/basics_wi.h |
// Basics
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
// Includes
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
// Memory management
/*
#define malloc(n) Malloc(n)
#de... | 2,682 | 22.743363 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/errors.c |
/*////////////////
//Error handling//
////////////////*/
char *error_index(int e){
static char err[100];
switch(e) {
case 0: strcpy(err, "No error"); break;
case 1: strcpy(err, "Out of memory"); break;
case 2: strcpy(err, "The text must end with a \\0"); break;
case 5: strcpy(err, "You can't free... | 985 | 36.923077 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/ii.h |
/** **********************************************************************/
/** Saving/Loading the index to/from disk **/
/** **********************************************************************/
// * loads the source text into memory
int loadTextInMem (byte **text, uint *size, cha... | 3,299 | 40.25 | 108 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/not needed/horspool.h | /* Searches using Horspool's algorithm adapted to
search inside a text compressed with End-Tagged Dense Code.
Lightweight Natural Language Text Compression: Information Retrieval 2006
Programmed by Antonio Fari�a.
Author's contact: Antonio Fari�a, Databases Lab, University of
A Coru�a. Campus de Elvi�a s/n. Spain ... | 1,968 | 30.758065 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/not needed/iisvsETDCBlock.c | /*************************************************************************************************/
int getPositions (void *index, uchar *pattern, ulong length, uint *ids, uint nids, uint **list, uint *len) {
int retval;
uint i;
twcsa* wcsa = (twcsa *) index;
//intersecting lists
uint *candDocs;
uint numcand... | 5,708 | 25.188073 | 132 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/src/utils/not needed/horspool.c |
#include "horspool.h"
/*------------------------------------------------------------------
Initializes Horspool's d-vector (jumps for each letter)
------------------------------------------------------------------*/
void inicialize_d(byte *code, unsigned int len, byte *d) {
unsigned int c,i,m_i,k;
for (c=0;c... | 2,031 | 25.38961 | 125 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/linker/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/****************************************************************... | 4,018 | 31.674797 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/linker/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/linker/build_il.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "farilzma.h"
#include "interface.h"
/* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
/* macro to detect and notify errors */
#define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}}... | 3,524 | 24.359712 | 98 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/interface.h |
/**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/****************************************************************... | 4,023 | 31.715447 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/ilspire07.h | /* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <unistd.h> //fork
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/sysinfo.h> //to obtain number of cores
#include "utils/basics.h"
#include "utils/sort_alg.h"
//#include "utils/fileInfo.h"
#incl... | 6,650 | 37.445087 | 127 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/utils/bitrankw32int.h | /* bitarray.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foun... | 2,030 | 28.867647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/utils/basics.h |
// Basics
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
// Includes
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
// Memory management
#define malloc(n) Malloc(n)
#defi... | 2,571 | 21.964286 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/utils/sort_alg.c | #include "sort_alg.h"
/** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/
int simplesortAsc(tsort *V, uint n) {
register int i,j;
register uint min,tmp;
for (i=0; i< n-1;i++) {
min =i;
for (j=i+1;j<n;j++) {
if ( V[min].key > V[j].key ) min = j;
}
tmp =V[i].key; V[i].key =V[min].key; V... | 1,879 | 23.102564 | 69 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/ilists/ilerrors.c |
/*////////////////
//Error handling//
////////////////*/
/*
char *error_il(int e){
switch(e) {
case 0: return "No error"; break;
case 1: return "Out of memory"; break;
case 30: return "Error reading source posting lists";break;
case 31: return "Empty Source list or incomplete !!";break;
case 40: retu... | 2,558 | 38.369231 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/ilists/bc.h |
#define OFFSET_LOWEST_VALUE (1)
//#define OFFSET_LOWEST_VALUE (1) //AS "ZERO" IS NEVER ENCODED... value OFFSET_LOWEST_VALUE will
//will be encoded as "0"... OFFSET_LOWEST_VALUE +1 as "1", etc.
//const unsigned long TABLABASE[5] = {0,128,16512,2113664,270549120};
////decoding for ETDC
//uint decode ... | 3,054 | 31.849462 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/src/ilists/ildatatypes.h |
#ifndef DATA_TYPES_IL_INCLUDED
#define DATA_TYPES_IL_INCLUDED
typedef struct{
int (*defaultFsearch) (void *ail, uint id, uint value);
int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs );
int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs );
... | 1,515 | 31.956522 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/farilzma.h | #ifndef LZMA_API_INCLUDED
#define LZMA_API_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef uchar
#define uchar unsigned char
#endif
/******************************************************************************/
/* Public functions */
/******************************... | 2,428 | 31.824324 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/LZMA_Alone/LzmaBench.h | // LzmaBench.h
#ifndef __LZMABENCH_H
#define __LZMABENCH_H
#include <stdio.h>
#include "../../../Common/Types.h"
#ifdef EXTERNAL_LZMA
#include "../../UI/Common/LoadCodecs.h"
#endif
struct CBenchInfo
{
UInt64 GlobalTime;
UInt64 GlobalFreq;
UInt64 UserTime;
UInt64 UserFreq;
UInt64 UnpackSize;
UInt64 PackSi... | 1,236 | 24.244898 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Test7Zip/stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to ... | 521 | 23.857143 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Lib7Zip/lib7zip.h | #ifndef __LIB_7ZIP_H__
#define __LIB_7ZIP_H__
#include <string>
#include <vector>
#ifndef _WIN32
#define __int64 long long int
typedef std::basic_string<wchar_t> wstring;
typedef std::basic_string<char> string;
#define CLASS_E_CLASSNOTAVAILABLE (0x80040111L)
#define FILE_BEGIN 0
#define FILE_CURRENT ... | 2,539 | 21.678571 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/WEB/svn/trunk/Lib7Zip/HelperFuncs.h | #ifndef __HELPER_FUNCS_H__
#define __HELPER_FUNCS_H__
#ifndef RBOOLOK
#define RBOOLOK(x) { int __result__ = (x); if (__result__ != 0) return false; }
#endif
#ifndef _WIN32
#define WINAPI
#endif
typedef UInt32 (WINAPI *GetMethodPropertyFunc)(UInt32 index, PROPID propID, PROPVARIANT *value);
typedef UInt32 (WINAPI *Ge... | 1,971 | 36.923077 | 98 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaLib.h | /* LzmaLib.h -- LZMA library interface
2008-08-05
Igor Pavlov
Public domain */
#ifndef __LZMALIB_H
#define __LZMALIB_H
#include "Types.h"
#ifdef __cplusplus
#define MY_EXTERN_C extern "C"
#else
#define MY_EXTERN_C extern
#endif
#define MY_STDAPI MY_EXTERN_C int MY_STD_CALL
#define LZMA_PROPS_SIZE 5
/*
RAM req... | 4,376 | 31.183824 | 112 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFindMt.h | /* LzFindMt.h -- multithreaded Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZFINDMT_H
#define __LZFINDMT_H
#include "Threads.h"
#include "LzFind.h"
#define kMtHashBlockSize (1 << 13)
#define kMtHashNumBlocks (1 << 3)
#define kMtHashNumBlocksMask (kMtHashNumBlocks - 1)
#defin... | 2,368 | 23.173469 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaLib.c | /* LzmaLib.c -- LZMA library wrapper
2008-08-05
Igor Pavlov
Public domain */
#include "LzmaEnc.h"
#include "LzmaDec.h"
#include "Alloc.h"
#include "LzmaLib.h"
static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); }
static void SzFree(void *p, void *address) { p = p; MyFree(address); }
static ISzAl... | 1,478 | 30.468085 | 112 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bcj2.c | /* Bcj2.c -- Converter for x86 code (BCJ2)
2008-10-04 : Igor Pavlov : Public domain */
#include "Bcj2.h"
#ifdef _LZMA_PROB32
#define CProb UInt32
#else
#define CProb UInt16
#endif
#define IsJcc(b0, b1) ((b0) == 0x0F && ((b1) & 0xF0) == 0x80)
#define IsJ(b0, b1) ((b1 & 0xFE) == 0xE8 || IsJcc(b0, b1))
#define kNumTop... | 3,170 | 22.842105 | 109 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFind.h | /* LzFind.h -- Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZFIND_H
#define __LZFIND_H
#include "Types.h"
typedef UInt32 CLzRef;
typedef struct _CMatchFinder
{
Byte *buffer;
UInt32 pos;
UInt32 posLimit;
UInt32 streamPos;
UInt32 lenLimit;
UInt32 cyclicBufferPos;
... | 3,220 | 28.824074 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Threads.c | /* Threads.c -- multithreading library
2008-08-05
Igor Pavlov
Public domain */
#include "Threads.h"
#include <process.h>
static WRes GetError()
{
DWORD res = GetLastError();
return (res) ? (WRes)(res) : 1;
}
WRes HandleToWRes(HANDLE h) { return (h != 0) ? 0 : GetError(); }
WRes BOOLToWRes(BOOL v) { return v ? 0 ... | 3,206 | 28.154545 | 121 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Threads.h | /* Threads.h -- multithreading library
2008-11-22 : Igor Pavlov : Public domain */
#ifndef __7Z_THRESDS_H
#define __7Z_THRESDS_H
#include "Types.h"
typedef struct _CThread
{
HANDLE handle;
} CThread;
#define Thread_Construct(thread) (thread)->handle = NULL
#define Thread_WasCreated(thread) ((thread)->handle != NU... | 1,945 | 27.202899 | 122 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Types.h | /* Types.h -- Basic types
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_TYPES_H
#define __7Z_TYPES_H
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
#endif
#define SZ_OK 0
#define SZ_ERROR_DATA 1
#define SZ_ERROR_MEM 2
#define SZ_ERROR_CRC 3
#define SZ_ERROR_UNSUPPORTED 4
#define SZ_ERROR_PARAM 5... | 4,665 | 21.325359 | 87 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zCrc.h | /* 7zCrc.h -- CRC32 calculation
2008-03-13
Igor Pavlov
Public domain */
#ifndef __7Z_CRC_H
#define __7Z_CRC_H
#include <stddef.h>
#include "Types.h"
extern UInt32 g_CrcTable[];
void MY_FAST_CALL CrcGenerateTable(void);
#define CRC_INIT_VAL 0xFFFFFFFF
#define CRC_GET_DIGEST(crc) ((crc) ^ 0xFFFFFFFF)
#define CRC_UP... | 531 | 20.28 | 81 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zStream.c | /* 7zStream.c -- 7z Stream functions
2008-11-23 : Igor Pavlov : Public domain */
#include <string.h>
#include "Types.h"
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
{
while (size != 0)
{
size_t processed = size;
RINOK(stream->Read(stream, buf, &processed));
if ... | 3,975 | 22.388235 | 86 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaEnc.h | /* LzmaEnc.h -- LZMA Encoder
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZMAENC_H
#define __LZMAENC_H
#include "Types.h"
#define LZMA_PROPS_SIZE 5
typedef struct _CLzmaEncProps
{
int level; /* 0 <= level <= 9 */
UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version
... | 2,834 | 37.835616 | 99 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra86.c | /* Bra86.c -- Converter for x86 code (BCJ)
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
#define Test86MSByte(b) ((b) == 0 || (b) == 0xFF)
const Byte kMaskToAllowedStatus[8] = {1, 1, 1, 0, 1, 0, 0, 0};
const Byte kMaskToBitNumber[8] = {0, 1, 2, 2, 3, 3, 3, 3};
SizeT x86_Convert(Byte *data, SizeT size... | 2,184 | 24.406977 | 102 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzHash.h | /* LzHash.h -- HASH functions for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZHASH_H
#define __LZHASH_H
#define kHash2Size (1 << 10)
#define kHash3Size (1 << 16)
#define kHash4Size (1 << 20)
#define kFix3HashSize (kHash2Size)
#define kFix4HashSize (kHash2Size + kHash3Size)
#define kFix5Hash... | 1,962 | 34.690909 | 101 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/7zFile.c | /* 7zFile.c -- File IO
2008-11-22 : Igor Pavlov : Public domain */
#include "7zFile.h"
#ifndef USE_WINDOWS_FILE
#include <errno.h>
#endif
#ifdef USE_WINDOWS_FILE
/*
ReadFile and WriteFile functions in Windows have BUG:
If you Read or Write 64MB or more (probably min_failure_size = 64MB - 32KB + 1)
from/t... | 6,000 | 21.731061 | 94 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/CpuArch.h | /* CpuArch.h
2008-08-05
Igor Pavlov
Public domain */
#ifndef __CPUARCH_H
#define __CPUARCH_H
/*
LITTLE_ENDIAN_UNALIGN means:
1) CPU is LITTLE_ENDIAN
2) it's allowed to make unaligned memory accesses
if LITTLE_ENDIAN_UNALIGN is not defined, it means that we don't know
about these properties of platform.
*/
#if de... | 1,949 | 26.857143 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFindMt.c | /* LzFindMt.c -- multithreaded Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#include "LzHash.h"
#include "LzFindMt.h"
void MtSync_Construct(CMtSync *p)
{
p->wasCreated = False;
p->csWasInitialized = False;
p->csWasEntered = False;
Thread_Construct(&p->thread);
Event_Construct(... | 22,129 | 26.871537 | 132 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra.h | /* Bra.h -- Branch converters for executables
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __BRA_H
#define __BRA_H
#include "Types.h"
/*
These functions convert relative addresses to absolute addresses
in CALL instructions to increase the compression ratio.
In:
data - data buffer
size - s... | 1,830 | 29.016393 | 83 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/BraIA64.c | /* BraIA64.c -- Converter for IA-64 code
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
static const Byte kBranchTable[32] =
{
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
4, 4, 6, 6, 0, 0, 7, 7,
4, 4, 0, 0, 4, 4, 0, 0
};
SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding)
{
... | 1,748 | 24.720588 | 74 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Bra.c | /* Bra.c -- Converters for RISC code
2008-10-04 : Igor Pavlov : Public domain */
#include "Bra.h"
SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding)
{
SizeT i;
if (size < 4)
return 0;
size -= 4;
ip += 8;
for (i = 0; i <= size; i += 4)
{
if (data[i + 3] == 0xEB)
{
UInt32 d... | 3,140 | 22.440299 | 94 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaDec.h | /* LzmaDec.h -- LZMA Decoder
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZMADEC_H
#define __LZMADEC_H
#include "Types.h"
/* #define _LZMA_PROB32 */
/* _LZMA_PROB32 can increase the speed on some CPUs,
but memory usage for CLzmaDec::probs will be doubled in that case */
#ifdef _LZMA_PROB32
#define CLzm... | 6,794 | 29.334821 | 111 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzFind.c | /* LzFind.c -- Match finder for LZ algorithms
2008-10-04 : Igor Pavlov : Public domain */
#include <string.h>
#include "LzFind.h"
#include "LzHash.h"
#define kEmptyHashValue 0
#define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
#define kNormalizeStepMin (1 << 10) /* it must be power of 2 */
#define kNormalizeMask (~(kN... | 19,493 | 24.922872 | 116 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zExtract.h | /* 7zExtract.h -- Extracting from 7z archive
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_EXTRACT_H
#define __7Z_EXTRACT_H
#include "7zIn.h"
/*
SzExtract extracts file from archive
*outBuffer must be 0 before first call for each new archive.
Extracting cache:
If you need to decompress more th... | 1,357 | 31.333333 | 98 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zExtract.c | /* 7zExtract.c -- Extracting from 7z archive
2008-11-23 : Igor Pavlov : Public domain */
#include "../../7zCrc.h"
#include "7zDecode.h"
#include "7zExtract.h"
SRes SzAr_Extract(
const CSzArEx *p,
ILookInStream *inStream,
UInt32 fileIndex,
UInt32 *blockIndex,
Byte **outBuffer,
size_t *outBuffer... | 2,467 | 25.255319 | 82 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zDecode.c | /* 7zDecode.c -- Decoding from 7z folder
2008-11-23 : Igor Pavlov : Public domain */
#include <string.h>
#include "../../Bcj2.h"
#include "../../Bra.h"
#include "../../LzmaDec.h"
#include "7zDecode.h"
#define k_Copy 0
#define k_LZMA 0x30101
#define k_BCJ 0x03030103
#define k_BCJ2 0x0303011B
static SRes SzDecodeLzma... | 7,546 | 28.596078 | 114 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zMain.c | /* 7zMain.c - Test application for 7z Decoder
2008-11-23 : Igor Pavlov : Public domain */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../../7zCrc.h"
#include "../../7zFile.h"
#include "../../7zVersion.h"
#include "7zAlloc.h"
#include "7zExtract.h"
#include "7zIn.h"
static void ConvertNumber... | 6,381 | 23.26616 | 102 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/Archive/7z/7zIn.h | /* 7zIn.h -- 7z Input functions
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_IN_H
#define __7Z_IN_H
#include "7zHeader.h"
#include "7zItem.h"
typedef struct
{
CSzAr db;
UInt64 startPosAfterHeader;
UInt64 dataPos;
UInt32 *FolderStartPackStreamIndex;
UInt64 *PackStreamStartPositions;
UInt32... | 892 | 20.261905 | 96 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaUtil/Lzma86Dec.c | /* Lzma86Dec.c -- LZMA + x86 (BCJ) Filter Decoder
2008-04-07
Igor Pavlov
Public domain */
#include "Lzma86Dec.h"
#include "../Alloc.h"
#include "../Bra.h"
#include "../LzmaDec.h"
#define LZMA86_SIZE_OFFSET (1 + LZMA_PROPS_SIZE)
#define LZMA86_HEADER_SIZE (LZMA86_SIZE_OFFSET + 8)
static void *SzAlloc(void *p, size_t... | 1,528 | 23.66129 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaUtil/Lzma86Enc.c | /* Lzma86Enc.c -- LZMA + x86 (BCJ) Filter Encoder
2008-08-05
Igor Pavlov
Public domain */
#include <string.h>
#include "Lzma86Enc.h"
#include "../Alloc.h"
#include "../Bra.h"
#include "../LzmaEnc.h"
#define SZE_OUT_OVERFLOW SZE_DATA_ERROR
static void *SzAlloc(void *p, size_t size) { p = p; return MyAlloc(size); }
... | 2,883 | 24.298246 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaUtil/LzmaUtil.c | /* LzmaUtil.c -- Test application for LZMA compression
2008-11-23 : Igor Pavlov : Public domain */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../Alloc.h"
#include "../7zFile.h"
#include "../7zVersion.h"
#include "../LzmaDec.h"
#include "../LzmaEnc.h"
const c... | 6,348 | 23.898039 | 95 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaUtil/Lzma86Enc.h | /* Lzma86Enc.h -- LZMA + x86 (BCJ) Filter Encoder
2008-08-05
Igor Pavlov
Public domain */
#ifndef __LZMA86ENC_H
#define __LZMA86ENC_H
#include "../Types.h"
/*
It's an example for LZMA + x86 Filter use.
You can use .lzma86 extension, if you write that stream to file.
.lzma86 header adds one additional byte to standar... | 2,197 | 29.109589 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/C/LzmaUtil/Lzma86Dec.h | /* Lzma86Dec.h -- LZMA + x86 (BCJ) Filter Decoder
2008-08-05
Igor Pavlov
Public domain */
#ifndef __LZMA86DEC_H
#define __LZMA86DEC_H
#include "../Types.h"
/*
Lzma86_GetUnpackSize:
In:
src - input data
srcLen - input data size
Out:
unpackSize - size of uncompressed stream
Return code:
SZ... | 1,003 | 20.826087 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/FileIO.h | // Windows/FileIO.h
#ifndef __WINDOWS_FILEIO_H
#define __WINDOWS_FILEIO_H
#include "../Common/Types.h"
namespace NWindows {
namespace NFile {
namespace NIO {
struct CByHandleFileInfo
{
DWORD Attributes;
FILETIME CTime;
FILETIME ATime;
FILETIME MTime;
DWORD VolumeSerialNumber;
UInt64 Size;
DWOR... | 2,858 | 27.59 | 100 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/Defs.h | // Windows/Defs.h
#ifndef __WINDOWS_DEFS_H
#define __WINDOWS_DEFS_H
inline bool BOOLToBool(BOOL value)
{ return (value != FALSE); }
#ifdef _WIN32
inline bool LRESULTToBool(LRESULT value)
{ return (value != FALSE); }
#endif
inline BOOL BoolToBOOL(bool value)
{ return (value ? TRUE: FALSE); }
inline VARIANT_BO... | 505 | 20.083333 | 51 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/Time.h | // Windows/Time.h
#ifndef __WINDOWS_TIME_H
#define __WINDOWS_TIME_H
#include "Common/Types.h"
namespace NWindows {
namespace NTime {
bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime);
bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime);
void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileT... | 581 | 25.454545 | 69 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/Thread.h | // Windows/Thread.h
#ifndef __WINDOWS_THREAD_H
#define __WINDOWS_THREAD_H
#include "Defs.h"
extern "C"
{
#include "../../C/Threads.h"
}
namespace NWindows {
class CThread
{
::CThread thread;
public:
CThread() { Thread_Construct(&thread); }
~CThread() { Close(); }
bool IsCreated() { return Thread_WasCreated... | 1,213 | 27.904762 | 101 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/Synchronization.h | // Windows/Synchronization.h
#ifndef __WINDOWS_SYNCHRONIZATION_H
#define __WINDOWS_SYNCHRONIZATION_H
#include "Defs.h"
extern "C"
{
#include "../../C/Threads.h"
}
#ifdef _WIN32
#include "Handle.h"
#endif
namespace NWindows {
namespace NSynchronization {
class CBaseEvent
{
protected:
::CEvent _object;
public:
... | 4,137 | 23.485207 | 105 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/PropVariant.h | // Windows/PropVariant.h
#ifndef __WINDOWS_PROPVARIANT_H
#define __WINDOWS_PROPVARIANT_H
#include "../Common/MyWindows.h"
#include "../Common/Types.h"
namespace NWindows {
namespace NCOM {
class CPropVariant : public tagPROPVARIANT
{
public:
CPropVariant() { vt = VT_EMPTY; wReserved1 = 0; }
~CPropVariant() { Cl... | 1,958 | 32.775862 | 109 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/FileFind.h | // Windows/FileFind.h
#ifndef __WINDOWS_FILEFIND_H
#define __WINDOWS_FILEFIND_H
#include "../Common/MyString.h"
#include "../Common/Types.h"
#include "FileName.h"
#include "Defs.h"
namespace NWindows {
namespace NFile {
namespace NFind {
namespace NAttributes
{
inline bool IsReadOnly(DWORD attrib) { return (attri... | 4,454 | 27.928571 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/FileName.h | // Windows/FileName.h
#ifndef __WINDOWS_FILENAME_H
#define __WINDOWS_FILENAME_H
#include "../Common/MyString.h"
namespace NWindows {
namespace NFile {
namespace NName {
const TCHAR kDirDelimiter = CHAR_PATH_SEPARATOR;
const TCHAR kAnyStringWildcard = '*';
void NormalizeDirPathPrefix(CSysString &dirPath); // ensure... | 601 | 22.153846 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/FileMapping.h | // Windows/FileMapping.h
#ifndef __WINDOWS_FILEMAPPING_H
#define __WINDOWS_FILEMAPPING_H
#include "Windows/Handle.h"
#include "Windows/Defs.h"
namespace NWindows {
// namespace NFile {
// namespace NMapping {
class CFileMapping: public CHandle
{
public:
bool Create(HANDLE file, LPSECURITY_ATTRIBUTES attributes,
... | 1,234 | 23.215686 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/PropVariantConversions.h | // Windows/PropVariantConversions.h
#ifndef __PROPVARIANTCONVERSIONS_H
#define __PROPVARIANTCONVERSIONS_H
#include "Common/Types.h"
#include "Common/MyString.h"
bool ConvertFileTimeToString(const FILETIME &ft, char *s, bool includeTime = true, bool includeSeconds = true);
UString ConvertFileTimeToString(const FILETI... | 525 | 34.066667 | 111 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Windows/FileDir.h | // Windows/FileDir.h
#ifndef __WINDOWS_FILEDIR_H
#define __WINDOWS_FILEDIR_H
#include "../Common/MyString.h"
#include "Defs.h"
namespace NWindows {
namespace NFile {
namespace NDirectory {
#ifdef WIN_LONG_PATH
bool GetLongPaths(LPCWSTR s1, LPCWSTR s2, UString &d1, UString &d2);
#endif
bool MyGetWindowsDirectory(CS... | 5,041 | 27.167598 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/Buffer.h | // Common/Buffer.h
#ifndef __COMMON_BUFFER_H
#define __COMMON_BUFFER_H
#include "Defs.h"
template <class T> class CBuffer
{
protected:
size_t _capacity;
T *_items;
public:
void Free()
{
delete []_items;
_items = 0;
_capacity = 0;
}
CBuffer(): _capacity(0), _items(0) {};
CBuffer(const CBuffe... | 1,743 | 21.358974 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/Wildcard.h | // Common/Wildcard.h
#ifndef __COMMON_WILDCARD_H
#define __COMMON_WILDCARD_H
#include "MyString.h"
int CompareFileNames(const UString &s1, const UString &s2);
void SplitPathToParts(const UString &path, UStringVector &pathParts);
void SplitPathToParts(const UString &path, UString &dirPrefix, UString &name);
UString ... | 2,400 | 28.641975 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/MyVector.h | // Common/Vector.h
#ifndef __COMMON_VECTOR_H
#define __COMMON_VECTOR_H
#include "Defs.h"
class CBaseRecordVector
{
void MoveItems(int destIndex, int srcIndex);
protected:
int _capacity;
int _size;
void *_items;
size_t _itemSize;
void ReserveOnePosition();
void InsertOneItem(int index);
void TestIn... | 6,303 | 24.115538 | 105 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/MyCom.h | // MyCom.h
#ifndef __MYCOM_H
#define __MYCOM_H
#include "MyWindows.h"
#ifndef RINOK
#define RINOK(x) { HRESULT __result_ = (x); if (__result_ != S_OK) return __result_; }
#endif
template <class T>
class CMyComPtr
{
T* _p;
public:
// typedef T _PtrClass;
CMyComPtr() { _p = NULL;}
CMyComPtr(T* p) {if ((_p = p... | 5,702 | 24.234513 | 116 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/StringConvert.h | // Common/StringConvert.h
#ifndef __COMMON_STRINGCONVERT_H
#define __COMMON_STRINGCONVERT_H
#include "MyWindows.h"
#include "MyString.h"
#include "Types.h"
UString MultiByteToUnicodeString(const AString &srcString, UINT codePage = CP_ACP);
AString UnicodeStringToMultiByte(const UString &srcString, UINT codePage, cha... | 3,075 | 40.567568 | 118 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/StdOutStream.h | // Common/StdOutStream.h
#ifndef __COMMON_STDOUTSTREAM_H
#define __COMMON_STDOUTSTREAM_H
#include <stdio.h>
#include "Types.h"
class CStdOutStream
{
bool _streamIsOpen;
FILE *_stream;
public:
CStdOutStream (): _streamIsOpen(false), _stream(0) {};
CStdOutStream (FILE *stream): _streamIsOpen(false), _stream(s... | 890 | 23.75 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/MyString.h | // Common/String.h
#ifndef __COMMON_STRING_H
#define __COMMON_STRING_H
#include <string.h>
// #include <wchar.h>
#include "MyVector.h"
#ifdef _WIN32
#include "MyWindows.h"
#endif
template <class T>
inline int MyStringLen(const T *s)
{
int i;
for (i = 0; s[i] != '\0'; i++);
return i;
}
template <class T>
inl... | 14,643 | 22.281399 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/II_docs/ilists.gap.imp/6.vbyteP7zip_acabadoMerge2yN[Fork.log_enabled]/lzmalib/lzma.sourceCode/LZMAFARI_LIB/lzma465/CPP/Common/DynamicBuffer.h | // Common/DynamicBuffer.h
#ifndef __COMMON_DYNAMICBUFFER_H
#define __COMMON_DYNAMICBUFFER_H
#include "Buffer.h"
template <class T> class CDynamicBuffer: public CBuffer<T>
{
void GrowLength(size_t size)
{
size_t delta;
if (this->_capacity > 64)
delta = this->_capacity / 4;
else if (this->_capaci... | 1,174 | 23.479167 | 73 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.