protoio.cc (11793:ef606668d247) protoio.cc (12334:e0ab29a34764)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 25 unchanged lines hidden (view full) ---

34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Hansson
38 */
39
40#include "proto/protoio.hh"
41
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 25 unchanged lines hidden (view full) ---

34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Hansson
38 */
39
40#include "proto/protoio.hh"
41
42#include "base/misc.hh"
42#include "base/logging.hh"
43
44using namespace std;
45using namespace google::protobuf;
46
47ProtoOutputStream::ProtoOutputStream(const string& filename) :
48 fileStream(filename.c_str(), ios::out | ios::binary | ios::trunc),
49 wrappedFileStream(NULL), gzipStream(NULL), zeroCopyStream(NULL)
50{

--- 151 unchanged lines hidden ---
43
44using namespace std;
45using namespace google::protobuf;
46
47ProtoOutputStream::ProtoOutputStream(const string& filename) :
48 fileStream(filename.c_str(), ios::out | ios::binary | ios::trunc),
49 wrappedFileStream(NULL), gzipStream(NULL), zeroCopyStream(NULL)
50{

--- 151 unchanged lines hidden ---