Home
last modified time | relevance | path

Searched refs:BinaryDecoder (Results 1 - 6 of 6) sorted by relevance

/third_party/protobuf/js/binary/
H A Ddecoder.js46 goog.provide('jspb.BinaryDecoder');
55 * BinaryDecoder implements the decoders for all the wire types specified in
65 jspb.BinaryDecoder = function(opt_bytes, opt_start, opt_length) {
103 * Global pool of BinaryDecoder instances.
104 * @private {!Array<!jspb.BinaryDecoder>}
106 jspb.BinaryDecoder.instanceCache_ = [];
116 * @return {!jspb.BinaryDecoder}
118 jspb.BinaryDecoder.alloc = function(opt_bytes, opt_start, opt_length) {
119 if (jspb.BinaryDecoder.instanceCache_.length) {
120 var newDecoder = jspb.BinaryDecoder
[all...]
H A Ddecoder_test.js46 goog.require('jspb.BinaryDecoder');
74 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
129 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
160 jspb.BinaryDecoder.instanceCache_ = [];
164 jspb.BinaryDecoder.alloc().free();
166 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length);
171 var decoder1 = jspb.BinaryDecoder.alloc();
172 var decoder2 = jspb.BinaryDecoder.alloc();
173 var decoder3 = jspb.BinaryDecoder.alloc();
178 assertEquals(3, jspb.BinaryDecoder
[all...]
H A Dreader.js35 * jspb's BinaryReader class wraps the BinaryDecoder class to add methods
51 goog.require('jspb.BinaryDecoder');
70 * @private {!jspb.BinaryDecoder}
72 this.decoder_ = jspb.BinaryDecoder.alloc(opt_bytes, opt_start, opt_length);
585 * @return {!jspb.BinaryDecoder}
596 jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(), start, length);
1041 * @param {function(this:jspb.BinaryDecoder)} decodeMethod
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Ddecoder_test.js46 goog.require('jspb.BinaryDecoder');
73 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
128 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
153 jspb.BinaryDecoder.instanceCache_ = [];
157 jspb.BinaryDecoder.alloc().free();
159 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length);
164 var decoder1 = jspb.BinaryDecoder.alloc();
165 var decoder2 = jspb.BinaryDecoder.alloc();
166 var decoder3 = jspb.BinaryDecoder.alloc();
171 assertEquals(3, jspb.BinaryDecoder
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Ddecoder_test.js46 goog.require('jspb.BinaryDecoder');
73 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
128 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
164 jspb.BinaryDecoder.instanceCache_ = [];
168 jspb.BinaryDecoder.alloc().free();
170 assertEquals(1, jspb.BinaryDecoder.instanceCache_.length);
175 var decoder1 = jspb.BinaryDecoder.alloc();
176 var decoder2 = jspb.BinaryDecoder.alloc();
177 var decoder3 = jspb.BinaryDecoder.alloc();
182 assertEquals(3, jspb.BinaryDecoder
[all...]
/third_party/protobuf/conformance/
H A DConformanceJava.java101 private static class BinaryDecoder <MessageType extends AbstractMessage> { class in ConformanceJava
173 BinaryDecoder <MessageType> decoder = new BinaryDecoder <MessageType> (); in parseBinary()

Completed in 4 milliseconds