Sigrid Solveig Haflínudóttiradd TODO to the readmec626c595 years agoHistory
44 lines · 647 B · C
RawDownload
#include <u.h>#include <libc.h>#include <flate.h>#include "pdf.h" /* 7.4.4 FlateDecode filter */ static intbw(void *aux, void *d, int n){	return bufput(aux, d, n);} static intbget(void *aux){	uchar c; 	return bufget(aux, &c, 1) == 1 ? c : -1;} static intflreadall(void *aux, Buffer *bi, Buffer *bo){	int r; 	do{		r = inflatezlib(bo, bw, bi, bget);	}while(r == FlateOk && !bufeof(bi)); 	if(r != FlateOk && bufleft(bo) < 1){		werrstr("%s", flateerr(r));		return -1;	} 	return unpredict(aux, bo);} Filter filterFlate = {	.name = "FlateDecode",	.readall = flreadall,	.open = flopenpredict,	.close = flclosepredict,};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t