| 262 | } |
| 263 | |
| 264 | BOOL LASindex::read(FILE* file) |
| 265 | { |
| 266 | if (file == 0) return FALSE; |
| 267 | ByteStreamIn* stream; |
| 268 | if (Endian::IS_LITTLE_ENDIAN) |
| 269 | stream = new ByteStreamInFileLE(file); |
| 270 | else |
| 271 | stream = new ByteStreamInFileBE(file); |
| 272 | if (!read(stream)) |
| 273 | { |
| 274 | delete stream; |
| 275 | return FALSE; |
| 276 | } |
| 277 | delete stream; |
| 278 | return TRUE; |
| 279 | } |
| 280 | |
| 281 | BOOL LASindex::write(FILE* file) const |
| 282 | { |