| OLD | NEW |
| 1 Protocol Buffers - Google's data interchange format | 1 Protocol Buffers - Google's data interchange format |
| 2 =================================================== | 2 =================================================== |
| 3 | 3 |
| 4 [](https
://travis-ci.org/google/protobuf) | 4 [](https
://travis-ci.org/google/protobuf) |
| 5 | 5 |
| 6 Copyright 2008 Google Inc. | 6 Copyright 2008 Google Inc. |
| 7 | 7 |
| 8 This directory contains the JavaScript Protocol Buffers runtime library. | 8 This directory contains the JavaScript Protocol Buffers runtime library. |
| 9 | 9 |
| 10 The library is currently compatible with: | 10 The library is currently compatible with: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 var message = new MyMessage(); | 146 var message = new MyMessage(); |
| 147 | 147 |
| 148 message.setName("John Doe"); | 148 message.setName("John Doe"); |
| 149 message.setAge(25); | 149 message.setAge(25); |
| 150 message.setPhoneNumbers(["800-555-1212", "800-555-0000"]); | 150 message.setPhoneNumbers(["800-555-1212", "800-555-0000"]); |
| 151 | 151 |
| 152 // Serializes to a UInt8Array. | 152 // Serializes to a UInt8Array. |
| 153 bytes = message.serializeBinary(); | 153 bytes = message.serializeBinary(); |
| 154 | 154 |
| 155 var message2 = new MyMessage(); | 155 var message2 = MyMessage.deserializeBinary(bytes); |
| 156 message2.deserializeBinary(bytes); | |
| 157 | 156 |
| 158 For more examples, see the tests. You can also look at the generated code | 157 For more examples, see the tests. You can also look at the generated code |
| 159 to see what methods are defined for your generated messages. | 158 to see what methods are defined for your generated messages. |
| OLD | NEW |