Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison src/ZlibInStream.java @ 5:bdb8d7c7d4d1
update version0.1
author | e085711 |
---|---|
date | Fri, 15 Apr 2011 18:31:12 +0900 |
parents | 60a87e277536 |
children |
comparison
equal
deleted
inserted
replaced
4:60a87e277536 | 5:bdb8d7c7d4d1 |
---|---|
94 | 94 |
95 if (inflater.needsInput()) { | 95 if (inflater.needsInput()) { |
96 inflater.setInput(underlying.getbuf(), underlying.getptr(), | 96 inflater.setInput(underlying.getbuf(), underlying.getptr(), |
97 avail_in); | 97 avail_in); |
98 } | 98 } |
99 | |
100 int n = inflater.inflate(b, end, bufSize - end); | 99 int n = inflater.inflate(b, end, bufSize - end); |
101 end += n; | 100 end += n; |
102 if (inflater.needsInput()) { | 101 if (inflater.needsInput()) { |
103 bytesIn -= avail_in; | 102 bytesIn -= avail_in; |
104 underlying.setptr(underlying.getptr() + avail_in); | 103 underlying.setptr(underlying.getptr() + avail_in); |
108 } | 107 } |
109 } | 108 } |
110 | 109 |
111 private InStream underlying; | 110 private InStream underlying; |
112 private int bufSize; | 111 private int bufSize; |
113 private int ptrOffset; | 112 private int ptrOffset; |
114 private java.util.zip.Inflater inflater; | 113 private java.util.zip.Inflater inflater; |
115 private int bytesIn; | 114 private int bytesIn; |
116 } | 115 } |