Mercurial > projects > dwt-win
comparison dwt/internal/image/PngDecodingDataStream.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | 9a64a7781bab |
children |
comparison
equal
deleted
inserted
replaced
212:ab60f3309436 | 213:36f5cb12e1a2 |
---|---|
17 | 17 |
18 import dwt.DWT; | 18 import dwt.DWT; |
19 import dwt.internal.image.PngLzBlockReader; | 19 import dwt.internal.image.PngLzBlockReader; |
20 | 20 |
21 public class PngDecodingDataStream : InputStream { | 21 public class PngDecodingDataStream : InputStream { |
22 | |
22 alias InputStream.read read; | 23 alias InputStream.read read; |
24 | |
23 InputStream stream; | 25 InputStream stream; |
24 byte currentByte; | 26 byte currentByte; |
25 int nextBitIndex; | 27 int nextBitIndex; |
26 | 28 |
27 PngLzBlockReader lzBlockReader; | 29 PngLzBlockReader lzBlockReader; |
49 */ | 51 */ |
50 void assertImageDataAtEnd() { | 52 void assertImageDataAtEnd() { |
51 lzBlockReader.assertCompressedDataAtEnd(); | 53 lzBlockReader.assertCompressedDataAtEnd(); |
52 } | 54 } |
53 | 55 |
54 override public void close() { | 56 public override void close() { |
55 assertImageDataAtEnd(); | 57 assertImageDataAtEnd(); |
56 checkAdler(); | 58 checkAdler(); |
57 } | 59 } |
58 | 60 |
59 int getNextIdatBits(int length) { | 61 int getNextIdatBits(int length) { |