MCPcopy Create free account
hub / github.com/LASzip/LASzip / init

Method init

src/laswritepoint.cpp:257–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257BOOL LASwritePoint::init(ByteStreamOut* outstream)
258{
259 if (!outstream) return FALSE;
260 this->outstream = outstream;
261
262 // if chunking is enabled
263 if (number_chunks == U32_MAX)
264 {
265 number_chunks = 0;
266 if (outstream->isSeekable())
267 {
268 chunk_table_start_position = outstream->tell();
269 }
270 else
271 {
272 chunk_table_start_position = -1;
273 }
274 outstream->put64bitsLE((U8*)&chunk_table_start_position);
275 chunk_start_position = outstream->tell();
276 }
277
278 U32 i;
279 for (i = 0; i < num_writers; i++)
280 {
281 ((LASwriteItemRaw*)(writers_raw[i]))->init(outstream);
282 }
283
284 if (enc)
285 {
286 writers = 0;
287 }
288 else
289 {
290 writers = writers_raw;
291 }
292
293 return TRUE;
294}
295
296BOOL LASwritePoint::write(const U8 * const * point)
297{

Callers 2

writeMethod · 0.45
write_chunk_tableMethod · 0.45

Calls 3

isSeekableMethod · 0.45
tellMethod · 0.45
put64bitsLEMethod · 0.45

Tested by

no test coverage detected