| 300 | } |
| 301 | |
| 302 | BOOL LASreadPoint::init(ByteStreamIn* instream) |
| 303 | { |
| 304 | if (!instream) return FALSE; |
| 305 | this->instream = instream; |
| 306 | |
| 307 | U32 i; |
| 308 | for (i = 0; i < num_readers; i++) |
| 309 | { |
| 310 | ((LASreadItemRaw*)(readers_raw[i]))->init(instream); |
| 311 | } |
| 312 | |
| 313 | if (dec) |
| 314 | { |
| 315 | chunk_count = chunk_size; |
| 316 | point_start = 0; |
| 317 | readers = 0; |
| 318 | } |
| 319 | else |
| 320 | { |
| 321 | point_start = instream->tell(); |
| 322 | readers = readers_raw; |
| 323 | } |
| 324 | |
| 325 | return TRUE; |
| 326 | } |
| 327 | |
| 328 | BOOL LASreadPoint::seek(const U32 current, const U32 target) |
| 329 | { |
no test coverage detected