~ubuntu-branches/ubuntu/trusty/bmagic/trusty

« back to all changes in this revision

Viewing changes to samples/sample4/sample4.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2011-03-03 12:22:16 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110303122216-qll5migewxnxe3s5
Tags: 3.7.0-1
* New upstream release (Closes: #615929)
* Update to Standards-Version 3.9.1 (no changes)
* Specify Debian source format as '3.0 (quilt)'

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    cout << "Max.serialize mem.:" << st.max_serialize_mem << endl;
91
91
 
92
92
    // Allocate serialization buffer.
93
 
 
94
93
    unsigned char*  buf = new unsigned char[st.max_serialize_mem];
95
94
 
96
95
    // Serialization to memory.
97
 
 
98
96
    unsigned len = bvs.serialize(bv, buf, 0);
99
 
    //unsigned len = bm::serialize(bv, buf);
 
97
 
100
98
 
101
99
    cout << "Serialized size:" << len << endl << endl;
102
100