comment
This commit is contained in:
parent
178c8fb1ed
commit
1fb537bf51
@ -7,12 +7,19 @@
|
|||||||
#define BUFSIZE 2000000
|
#define BUFSIZE 2000000
|
||||||
#define BSIZE 9
|
#define BSIZE 9
|
||||||
|
|
||||||
|
|
||||||
int mycompress(char* buff,int size,char* outbuf){
|
int mycompress(char* buff,int size,char* outbuf){
|
||||||
//memcpy(outbuf,buff,size);
|
//memcpy(outbuf,buff,size);
|
||||||
int k = 0;
|
int k = 0;
|
||||||
int head = 0;
|
int head = 0;
|
||||||
while(head < size && buff[head] > 0 ){
|
while(head < size && buff[head] > 0 ){
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Kod inspirovany riesenim
|
||||||
|
// pana Ing. Daniela Hladeka
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
int bufferSize = BSIZE;
|
int bufferSize = BSIZE;
|
||||||
if (head < bufferSize){
|
if (head < bufferSize){
|
||||||
bufferSize = head;
|
bufferSize = head;
|
||||||
|
Loading…
Reference in New Issue
Block a user