Searched refs:BinaryDecoder (Results 1 – 9 of 9) sorted by relevance
/third_party/protobuf/js/binary/ |
D | decoder.js | 65 jspb.BinaryDecoder = function(opt_bytes, opt_start, opt_length) { class in jspb 106 jspb.BinaryDecoder.instanceCache_ = []; 118 jspb.BinaryDecoder.alloc = function(opt_bytes, opt_start, opt_length) { 119 if (jspb.BinaryDecoder.instanceCache_.length) { 120 var newDecoder = jspb.BinaryDecoder.instanceCache_.pop(); 126 return new jspb.BinaryDecoder(opt_bytes, opt_start, opt_length); 134 jspb.BinaryDecoder.prototype.free = function() { 136 if (jspb.BinaryDecoder.instanceCache_.length < 100) { 137 jspb.BinaryDecoder.instanceCache_.push(this); 146 jspb.BinaryDecoder.prototype.clone = function() { [all …]
|
D | decoder_test.js | 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.instanceCache_.length); 207 decoder = jspb.BinaryDecoder.alloc(encoder.end()); [all …]
|
D | reader_test.js | 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 91 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 109 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 115 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 890 var decoder1 = new jspb.BinaryDecoder(writer.getResultBuffer()); 894 var decoder2 = new jspb.BinaryDecoder(decoder1.readBytes(blob.length + 4));
|
D | reader.js | 72 this.decoder_ = jspb.BinaryDecoder.alloc(opt_bytes, opt_start, opt_length); 596 jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(), start, length);
|
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/ |
D | decoder_test.js | 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.instanceCache_.length); 211 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); [all …]
|
D | reader_test.js | 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 91 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 109 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 115 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 845 var decoder1 = new jspb.BinaryDecoder(writer.getResultBuffer()); 849 var decoder2 = new jspb.BinaryDecoder(decoder1.readBytes(blob.length + 4));
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/ |
D | decoder_test.js | 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.instanceCache_.length); 200 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); [all …]
|
D | reader_test.js | 70 var decoder1 = jspb.BinaryDecoder.alloc(); 71 var decoder2 = jspb.BinaryDecoder.alloc(); 72 var decoder3 = jspb.BinaryDecoder.alloc(); 77 assertEquals(3, jspb.BinaryDecoder.instanceCache_.length); 85 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 91 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 109 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 115 assertEquals(2, jspb.BinaryDecoder.instanceCache_.length); 845 var decoder1 = new jspb.BinaryDecoder(writer.getResultBuffer()); 849 var decoder2 = new jspb.BinaryDecoder(decoder1.readBytes(blob.length + 4));
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 101 private static class BinaryDecoder <MessageType extends AbstractMessage> { class in ConformanceJava 173 BinaryDecoder <MessageType> decoder = new BinaryDecoder <MessageType> (); in parseBinary()
|