Mercurial > projects > dwt-linux
comparison dwt/internal/image/LEDataInputStream.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | f2e04420fd6c |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
239:06a1f6829310 | 240:ce446666f5a2 |
---|---|
154 * four bytes of the input stream. | 154 * four bytes of the input stream. |
155 */ | 155 */ |
156 public int readInt() { | 156 public int readInt() { |
157 byte[4] buf = void; | 157 byte[4] buf = void; |
158 read(buf); | 158 read(buf); |
159 return ((((((buf[3] & 0xFF) << 24) | | 159 return ((buf[3] & 0xFF) << 24) | |
160 (buf[2] & 0xFF)) << 16) | | 160 ((buf[2] & 0xFF) << 16) | |
161 (buf[1] & 0xFF)) << 8) | | 161 ((buf[1] & 0xFF) << 8) | |
162 (buf[0] & 0xFF); | 162 (buf[0] & 0xFF); |
163 } | 163 } |
164 | 164 |
165 /** | 165 /** |
166 * Answer a short comprised of the next | 166 * Answer a short comprised of the next |