MCPcopy Create free account
hub / github.com/LAStools/LAStools / chunk_bytes

Method chunk_bytes

LASzip/src/laswriteitemcompressed_v4.cpp:886–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886inline BOOL LASwriteItemCompressed_POINT14_v4::chunk_bytes()
887{
888 U32 num_bytes = 0;
889 ByteStreamOut* outstream = enc->getByteStreamOut();
890
891 // output the bytes of all layers
892
893 num_bytes = (U32)outstream_channel_returns_XY->getCurr();
894 outstream->putBytes(outstream_channel_returns_XY->getData(), num_bytes);
895
896 num_bytes = (U32)outstream_Z->getCurr();
897 outstream->putBytes(outstream_Z->getData(), num_bytes);
898
899 if (changed_classification)
900 {
901 num_bytes = (U32)outstream_classification->getCurr();
902 outstream->putBytes(outstream_classification->getData(), num_bytes);
903 }
904 else
905 {
906 num_bytes = 0;
907 }
908
909 if (changed_flags)
910 {
911 num_bytes = (U32)outstream_flags->getCurr();
912 outstream->putBytes(outstream_flags->getData(), num_bytes);
913 }
914 else
915 {
916 num_bytes = 0;
917 }
918
919 if (changed_intensity)
920 {
921 num_bytes = (U32)outstream_intensity->getCurr();
922 outstream->putBytes(outstream_intensity->getData(), num_bytes);
923 }
924 else
925 {
926 num_bytes = 0;
927 }
928
929 if (changed_scan_angle)
930 {
931 num_bytes = (U32)outstream_scan_angle->getCurr();
932 outstream->putBytes(outstream_scan_angle->getData(), num_bytes);
933 }
934 else
935 {
936 num_bytes = 0;
937 }
938
939 if (changed_user_data)
940 {
941 num_bytes = (U32)outstream_user_data->getCurr();
942 outstream->putBytes(outstream_user_data->getData(), num_bytes);
943 }

Callers 3

writeMethod · 0.45
chunkMethod · 0.45
doneMethod · 0.45

Calls 4

getByteStreamOutMethod · 0.80
getCurrMethod · 0.80
getDataMethod · 0.80
putBytesMethod · 0.45

Tested by

no test coverage detected