| 279 | } |
| 280 | |
| 281 | BOOL LASindex::write(FILE* file) const |
| 282 | { |
| 283 | if (file == 0) return FALSE; |
| 284 | ByteStreamOut* stream; |
| 285 | if (Endian::IS_LITTLE_ENDIAN) |
| 286 | stream = new ByteStreamOutFileLE(file); |
| 287 | else |
| 288 | stream = new ByteStreamOutFileBE(file); |
| 289 | if (!write(stream)) |
| 290 | { |
| 291 | delete stream; |
| 292 | return FALSE; |
| 293 | } |
| 294 | delete stream; |
| 295 | return TRUE; |
| 296 | } |
| 297 | |
| 298 | BOOL LASindex::read(const char* file_name) |
| 299 | { |