Lines Matching refs:encoder
61 var encoder = new jspb.BinaryEncoder();
64 writeValue.call(encoder, filter(0));
65 writeValue.call(encoder, filter(epsilon));
66 writeValue.call(encoder, filter(upperLimit));
70 writeValue.call(encoder, filter(cursor));
73 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
86 assertThrows(function() {writeValue.call(encoder, -1);});
87 assertThrows(function() {writeValue.call(encoder, upperLimit * 1.1);});
103 var encoder = new jspb.BinaryEncoder();
106 writeValue.call(encoder, filter(lowerLimit));
107 writeValue.call(encoder, filter(-epsilon));
108 writeValue.call(encoder, filter(0));
109 writeValue.call(encoder, filter(epsilon));
110 writeValue.call(encoder, filter(upperLimit));
117 writeValue.call(encoder, val);
124 writeValue.call(encoder, val);
128 var decoder = jspb.BinaryDecoder.alloc(encoder.end());
143 assertThrows(function() {writeValue.call(encoder, lowerLimit * 1.1);});
144 assertThrows(function() {writeValue.call(encoder, upperLimit * 1.1);});
180 var encoder = new jspb.BinaryEncoder();
191 encoder.writeVarintHash64(hashA);
192 encoder.writeVarintHash64(hashB);
193 encoder.writeVarintHash64(hashC);
194 encoder.writeVarintHash64(hashD);
196 encoder.writeFixedHash64(hashA);
197 encoder.writeFixedHash64(hashB);
198 encoder.writeFixedHash64(hashC);
199 encoder.writeFixedHash64(hashD);
201 var decoder = jspb.BinaryDecoder.alloc(encoder.end());