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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 /** | 135 /** |
136 * A reader function initializes a message using data from a BinaryReader. | 136 * A reader function initializes a message using data from a BinaryReader. |
137 * @typedef {function(!jspb.BinaryMessage, !jspb.BinaryReader):void} | 137 * @typedef {function(!jspb.BinaryMessage, !jspb.BinaryReader):void} |
138 */ | 138 */ |
139 jspb.ReaderFunction; | 139 jspb.ReaderFunction; |
140 | 140 |
141 | 141 |
142 /** | 142 /** |
143 * A writer function serializes a message to a BinaryWriter. | 143 * A writer function serializes a message to a BinaryWriter. |
144 * @typedef {function((!jspb.Message|!jspb.ConstBinaryMessage), | 144 * @typedef {!function(!jspb.Message, !jspb.BinaryWriter):void | |
145 * !jspb.BinaryWriter):void} | 145 * !function(!jspb.ConstBinaryMessage, !jspb.BinaryWriter):void} |
146 */ | 146 */ |
147 jspb.WriterFunction; | 147 jspb.WriterFunction; |
148 | 148 |
149 | 149 |
150 /** | 150 /** |
151 * A pruner function removes default-valued fields and empty submessages from a | 151 * A pruner function removes default-valued fields and empty submessages from a |
152 * message and returns either the pruned message or null if the entire message | 152 * message and returns either the pruned message or null if the entire message |
153 * was pruned away. | 153 * was pruned away. |
154 * @typedef {function(?jspb.BinaryMessage):?jspb.BinaryMessage} | 154 * @typedef {function(?jspb.BinaryMessage):?jspb.BinaryMessage} |
155 */ | 155 */ |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 * @const {number} | 351 * @const {number} |
352 */ | 352 */ |
353 jspb.BinaryConstants.TWO_TO_64 = 18446744073709551616; | 353 jspb.BinaryConstants.TWO_TO_64 = 18446744073709551616; |
354 | 354 |
355 | 355 |
356 /** | 356 /** |
357 * Eight-character string of zeros, used as the default 64-bit hash value. | 357 * Eight-character string of zeros, used as the default 64-bit hash value. |
358 * @const {string} | 358 * @const {string} |
359 */ | 359 */ |
360 jspb.BinaryConstants.ZERO_HASH = '\0\0\0\0\0\0\0\0'; | 360 jspb.BinaryConstants.ZERO_HASH = '\0\0\0\0\0\0\0\0'; |
OLD | NEW |