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

Method chunk_bytes

src/laswriteitemcompressed_v3.cpp:889–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected