| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 #include <memory> | 47 #include <memory> |
| 48 #ifndef _SHARED_PTR_H | 48 #ifndef _SHARED_PTR_H |
| 49 #include <google/protobuf/stubs/shared_ptr.h> | 49 #include <google/protobuf/stubs/shared_ptr.h> |
| 50 #endif | 50 #endif |
| 51 #include <string> | 51 #include <string> |
| 52 #include <iosfwd> | 52 #include <iosfwd> |
| 53 #include <google/protobuf/io/zero_copy_stream.h> | 53 #include <google/protobuf/io/zero_copy_stream.h> |
| 54 #include <google/protobuf/stubs/callback.h> | 54 #include <google/protobuf/stubs/callback.h> |
| 55 #include <google/protobuf/stubs/common.h> | 55 #include <google/protobuf/stubs/common.h> |
| 56 #include <google/protobuf/stubs/scoped_ptr.h> | |
| 57 #include <google/protobuf/stubs/stl_util.h> | 56 #include <google/protobuf/stubs/stl_util.h> |
| 58 | 57 |
| 59 | 58 |
| 60 namespace google { | 59 namespace google { |
| 61 namespace protobuf { | 60 namespace protobuf { |
| 62 namespace io { | 61 namespace io { |
| 63 | 62 |
| 64 // =================================================================== | 63 // =================================================================== |
| 65 | 64 |
| 66 // A ZeroCopyInputStream backed by an in-memory array of bytes. | 65 // A ZeroCopyInputStream backed by an in-memory array of bytes. |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 #else | 401 #else |
| 403 return make_pair(p, p != NULL); | 402 return make_pair(p, p != NULL); |
| 404 #endif | 403 #endif |
| 405 } | 404 } |
| 406 | 405 |
| 407 } // namespace io | 406 } // namespace io |
| 408 } // namespace protobuf | 407 } // namespace protobuf |
| 409 | 408 |
| 410 } // namespace google | 409 } // namespace google |
| 411 #endif // GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__ | 410 #endif // GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__ |
| OLD | NEW |