MCPcopy Create free account
hub / github.com/davisking/dlib / get_decoded_string_matarray_old

Function get_decoded_string_matarray_old

dlib/test/serialize.cpp:739–769  ·  view source on GitHub ↗

This function returns the contents of the file 'matarray.dat'

Source from the content-addressed store, hash-verified

737
738 // This function returns the contents of the file 'matarray.dat'
739 const std::string get_decoded_string_matarray_old()
740 {
741 dlib::base64 base64_coder;
742 dlib::compress_stream::kernel_1ea compressor;
743 std::ostringstream sout;
744 std::istringstream sin;
745
746 // The base64 encoded data from the file 'matarray.dat' we want to decode and return.
747 sout << "AW852sEbTIeV+m/wLUcKJKPW+6IclviUWZcFh1daDZ0blDjPNTgPx0Lv56sIEwlG4I6C5OJzJBkZ";
748 sout << "PvczLjS7IEKh6eg7amNOyEexsQSgojL1oMe2gDEfkyInUGPJV90sNS0cvp/hIB134V8JCTYUP6vH";
749 sout << "9qpegLSIIQG+/NjLWyK2472vC88BJfKgkL3CPLMjQwB3tB928FNLbESDLIvpnb6q9ve68iuoyZZt";
750 sout << "z3TTJxHW3MIdgzuhNomvPxfo/Q+7lC/Orj0FewUX90al6DckwzOtLVRidh/ZKpsQsxzJYQGkjdX5";
751 sout << "mDzzXKqQb3Y3DnzEmwtRD9CUON3iRv1r26gHWLYorrYA";
752
753
754 // Put the data into the istream sin
755 sin.str(sout.str());
756 sout.str("");
757
758 // Decode the base64 text into its compressed binary form
759 base64_coder.decode(sin,sout);
760 sin.clear();
761 sin.str(sout.str());
762 sout.str("");
763
764 // Decompress the data into its original form
765 compressor.decompress(sin,sout);
766
767 // Return the decoded and decompressed data
768 return sout.str();
769 }
770
771 // This function returns the contents of the file 'matarray.dat'
772 const std::string get_decoded_string_matarray()

Callers 1

Calls 3

strMethod · 0.45
decodeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected