Skip to content

Commit b82d4ae

Browse files
committed
Backport binary proto serialization/deserialization code
In order to prepare for protobuf editions support, we are backporting our binary serialization and deserialization libraries (and associated tests). The newer code includes several years worth of improvements that improve the overall conformance findings.
1 parent 9664c89 commit b82d4ae

45 files changed

Lines changed: 8793 additions & 8046 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

binary/any_field_type.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
goog.module('jspb.binary.any_field_type');
2+
3+
const {RepeatedFieldType} = goog.require('jspb.binary.repeated_field_type');
4+
const {ScalarFieldType} = goog.requireType('jspb.binary.scalar_field_type');
5+
6+
7+
/**
8+
* A field in jspb can be a scalar, a block of bytes, another proto, or an
9+
* array of any of the above.
10+
* @typedef {?ScalarFieldType|?RepeatedFieldType|!Uint8Array}
11+
*/
12+
let AnyFieldType;
13+
14+
exports = {AnyFieldType};

0 commit comments

Comments
 (0)