(
count> bytes)
163 if(len < 0 && db->cache_size < -
len)
193 if( bytes + sz >
count)
222 while(
count> bytes)
276commit = (
len== len1) ;
301 data->src = stream ;
302 data->size = max_cache_size;
303 data->cache_size = max_cache_size/10;
304 if(
data->cache_size < 2048 && max_cache_size > 2048)
305 data->cache_size=2048;
310 if(
data->size <= 1024)
314__FILE__,__LINE__,
data->size*2);
345fprintf(stderr,
"scanned buffer");
346 for(bytes=0; bytes<8; bytes++)
347fprintf(stderr,
"'%x',",header[bytes]);
348fprintf(stderr,
"\n");
350 for(
val=0, bytes=0; bytes<4; bytes++,
dbuf++)
353 for(
val=0 ; bytes<8; bytes++,
dbuf++)
370 for(bytes=0; bytes<4; bytes++,
dbuf++)
371*
dbuf= (
val>> (3-bytes)*8) & 0xff ;
373 for( ; bytes<8; bytes++,
dbuf++)
374*
dbuf= (
val>> (7-bytes)*8) & 0xff ;
377fprintf(stderr,
"written buffer");
378 for(bytes=0; bytes<8; bytes++)
379fprintf(stderr,
"'%x',",header[bytes]);
380fprintf(stderr,
"\n");
396 unsigned charlens[8];
406 if(
strcmp(obuf,
"ZIP")==0)
438 ErrPostEx(
SEV_INFO, 0,0,
"\n%s:%d: small compressor output buffer('%d' - required %d) ",
457 if( bytes < db->compr_size )
459 ErrPostEx(
SEV_ERROR, 0,0,
"\n%s:%d: broken data in input stream compressed(%d) != returned(%d)",
555 if(max_buffer_size<1024)
556max_buffer_size = 1024;
557 data->src = stream ;
561 data->bsize = max_buffer_size;
564max_buffer_size,read);
583asnio2fci_close(AsnIoPtr aip,
Int4commit)
585 fci_tstream = aip ->iostruct;
593rc = stream->
close(stream->
data,commit);
600asnio2fci_open(
intread,
fci_tstream)
603 returnAsnIoNew(ASNIO_BIN_IN,
NULL, stream, asnio2fci_proc,
NULL);
605 returnAsnIoNew(ASNIO_BIN_OUT,
NULL, stream,
NULL, asnio2fci_proc);
615 # pragma GCC diagnostic popstatic Int4 LIBCALLBACK cacher_write(Pointer ptr, CharPtr buf, Int4 count)
static Int4 LIBCALLBACK cacher_close(Pointer ptr, int commit)
static void compressor_header(compressor_t *db, UcharPtr header, int read)
static Int4 LIBCALLBACK compressor_write(Pointer ptr, CharPtr buf, Int4 count)
static Int4 LIBCALLBACK cacher_read(Pointer ptr, CharPtr buf, Int4 count)
static Int4 LIBCALLBACK compressor_close(Pointer ptr, int commit)
static Int4 LIBCALLBACK compressor_read(Pointer ptr, CharPtr obuf, Int4 count)
int16_t Int2
2-byte (16-bit) signed integer
int32_t Int4
4-byte (32-bit) signed integer
unsigned char Uchar
Alias for unsigned char.
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
int strcmp(const char *str1, const char *str2)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4