Home
last modified time | relevance | path

Searched refs:instanceCreator (Results 1 – 9 of 9) sorted by relevance

/third_party/protobuf/js/experimental/runtime/kernel/
Dmessage_set.js108 getMessageOrNull(typeId, instanceCreator, pivot) { argument
110 return item ? item.getMessageOrNull(instanceCreator, pivot) : null;
120 getMessageAttach(typeId, instanceCreator, pivot) { argument
123 return item.getMessageAttach(instanceCreator, pivot);
125 const message = instanceCreator(Kernel.createEmpty());
222 getMessage(instanceCreator, pivot) { argument
224 MSET_MESSAGE_FIELD_NUMBER, instanceCreator, pivot);
233 getMessageOrNull(instanceCreator, pivot) { argument
235 MSET_MESSAGE_FIELD_NUMBER, instanceCreator, pivot);
244 getMessageAttach(instanceCreator, pivot) { argument
[all …]
Dkernel.js61 function checkInstanceCreator(instanceCreator) { argument
63 const emptyMessage = instanceCreator(Kernel.createEmpty());
156 indexArray, bufferDecoder, fieldNumber, instanceCreator, pivot) { argument
160 bufferDecoder, indexArray[i], fieldNumber, instanceCreator, pivot);
213 function readMessage(indexArray, bufferDecoder, instanceCreator, pivot) { argument
214 checkInstanceCreator(instanceCreator);
216 return instanceCreator(accessor);
231 indexArray, bufferDecoder, fieldNumber, instanceCreator, pivot) { argument
232 checkInstanceCreator(instanceCreator);
236 instanceCreator, pivot);
[all …]
Dkernel_test.js363 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
370 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
383 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
391 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
408 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
441 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
463 const submsg2 = accessor.getMessage(1, TestMessage.instanceCreator);
505 expect(accessor.getMessageOrNull(1, TestMessage.instanceCreator))
514 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
524 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
[all …]
Dmessage_set_test.js23 expect(messageSet.getMessageOrNull(12345, TestMessage.instanceCreator))
36 expect(messageSet.getMessageOrNull(12345, TestMessage.instanceCreator))
89 messageSet.getMessageOrNull(12345, TestMessage.instanceCreator, 2);
96 messageSet.getMessageAttach(12345, TestMessage.instanceCreator, 2);
138 messageSet.getMessageOrNull(12345, TestMessage.instanceCreator);
215 messageSet.setMessage(12345, TestMessage.instanceCreator(fooMessage));
242 messageSet.setMessage(12345, TestMessage.instanceCreator(fooMessage));
257 messageSetParsed.getMessageOrNull(12345, TestMessage.instanceCreator)
Dkernel_repeated_test.js7019 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator),
7031 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7033 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7039 expect(accessor.getRepeatedMessageSize(1, TestMessage.instanceCreator))
7053 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator),
7062 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7064 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7073 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7075 1, TestMessage.instanceCreator, /* pivot= */ 0);
7108 /* fieldNumber= */ 1, TestMessage.instanceCreator,
[all …]
Dkernel_compatibility_test.js62 expect(newAccessor.getRepeatedMessageSize(1, TestMessage.instanceCreator))
65 newAccessor.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0)
136 1, message1, TestMessage.instanceCreator);
138 1, message2, TestMessage.instanceCreator);
146 const newMessage = newAccessor.getMessage(1, TestMessage.instanceCreator);
247 const message = newAccessor.getMessage(1, TestMessage.instanceCreator);
/third_party/protobuf/js/experimental/benchmarks/code_size/kernel/
Dpopular_types.js36 message.addRepeatedMessageElement(1, message, TestMessage.instanceCreator);
37 message.addRepeatedMessageIterable(1, [message], TestMessage.instanceCreator);
45 message.setRepeatedMessageElement(1, message, TestMessage.instanceCreator, 0);
53 s += message.getMessage(1, TestMessage.instanceCreator);
54 s += message.getMessageOrNull(1, TestMessage.instanceCreator);
58 s += message.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0);
59 s += message.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
60 s += message.getRepeatedMessageSize(1, TestMessage.instanceCreator);
Dall_types.js52 message.addRepeatedMessageElement(1, message, TestMessage.instanceCreator);
53 message.addRepeatedMessageIterable(1, [message], TestMessage.instanceCreator);
127 message.setRepeatedMessageElement(1, message, TestMessage.instanceCreator, 0);
165 s += message.getMessage(1, TestMessage.instanceCreator);
197 s += message.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0);
198 s += message.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
199 s += message.getRepeatedMessageSize(1, TestMessage.instanceCreator);
/third_party/protobuf/js/experimental/runtime/testing/binary/
Dtest_message.js20 return TestMessage.instanceCreator(Kernel.createEmpty());
27 static instanceCreator(kernel) { method in TestMessage
195 getMessageOrNull(fieldNumber, instanceCreator) { argument
196 return this.kernel_.getMessageOrNull(fieldNumber, instanceCreator);
205 getMessageAttach(fieldNumber, instanceCreator) { argument
206 return this.kernel_.getMessageAttach(fieldNumber, instanceCreator);
215 getMessage(fieldNumber, instanceCreator) { argument
216 return this.kernel_.getMessage(fieldNumber, instanceCreator);
608 getRepeatedMessageElement(fieldNumber, instanceCreator, index) { argument
610 fieldNumber, instanceCreator, index);
[all …]