Lines Matching refs:value

107 jspb.BinaryEncoder.prototype.writeUnsignedVarint32 = function(value) {  argument
108 goog.asserts.assert(value == Math.floor(value));
109 goog.asserts.assert((value >= 0) &&
110 (value < jspb.BinaryConstants.TWO_TO_32));
112 while (value > 127) {
113 this.buffer_.push((value & 0x7f) | 0x80);
114 value = value >>> 7;
117 this.buffer_.push(value);
126 jspb.BinaryEncoder.prototype.writeSignedVarint32 = function(value) { argument
127 goog.asserts.assert(value == Math.floor(value));
128 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
129 (value < jspb.BinaryConstants.TWO_TO_31));
132 if (value >= 0) {
133 this.writeUnsignedVarint32(value);
139 this.buffer_.push((value & 0x7f) | 0x80);
140 value = value >> 7;
155 jspb.BinaryEncoder.prototype.writeUnsignedVarint64 = function(value) { argument
156 goog.asserts.assert(value == Math.floor(value));
157 goog.asserts.assert((value >= 0) &&
158 (value < jspb.BinaryConstants.TWO_TO_64));
159 jspb.utils.splitInt64(value);
171 jspb.BinaryEncoder.prototype.writeSignedVarint64 = function(value) { argument
172 goog.asserts.assert(value == Math.floor(value));
173 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
174 (value < jspb.BinaryConstants.TWO_TO_63));
175 jspb.utils.splitInt64(value);
186 jspb.BinaryEncoder.prototype.writeZigzagVarint32 = function(value) { argument
187 goog.asserts.assert(value == Math.floor(value));
188 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
189 (value < jspb.BinaryConstants.TWO_TO_31));
190 this.writeUnsignedVarint32(((value << 1) ^ (value >> 31)) >>> 0);
200 jspb.BinaryEncoder.prototype.writeZigzagVarint64 = function(value) { argument
201 goog.asserts.assert(value == Math.floor(value));
202 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
203 (value < jspb.BinaryConstants.TWO_TO_63));
204 jspb.utils.splitZigzag64(value);
215 jspb.BinaryEncoder.prototype.writeUint8 = function(value) { argument
216 goog.asserts.assert(value == Math.floor(value));
217 goog.asserts.assert((value >= 0) && (value < 256));
218 this.buffer_.push((value >>> 0) & 0xFF);
227 jspb.BinaryEncoder.prototype.writeUint16 = function(value) { argument
228 goog.asserts.assert(value == Math.floor(value));
229 goog.asserts.assert((value >= 0) && (value < 65536));
230 this.buffer_.push((value >>> 0) & 0xFF);
231 this.buffer_.push((value >>> 8) & 0xFF);
240 jspb.BinaryEncoder.prototype.writeUint32 = function(value) { argument
241 goog.asserts.assert(value == Math.floor(value));
242 goog.asserts.assert((value >= 0) &&
243 (value < jspb.BinaryConstants.TWO_TO_32));
244 this.buffer_.push((value >>> 0) & 0xFF);
245 this.buffer_.push((value >>> 8) & 0xFF);
246 this.buffer_.push((value >>> 16) & 0xFF);
247 this.buffer_.push((value >>> 24) & 0xFF);
256 jspb.BinaryEncoder.prototype.writeUint64 = function(value) { argument
257 goog.asserts.assert(value == Math.floor(value));
258 goog.asserts.assert((value >= 0) &&
259 (value < jspb.BinaryConstants.TWO_TO_64));
260 jspb.utils.splitUint64(value);
271 jspb.BinaryEncoder.prototype.writeInt8 = function(value) { argument
272 goog.asserts.assert(value == Math.floor(value));
273 goog.asserts.assert((value >= -128) && (value < 128));
274 this.buffer_.push((value >>> 0) & 0xFF);
283 jspb.BinaryEncoder.prototype.writeInt16 = function(value) { argument
284 goog.asserts.assert(value == Math.floor(value));
285 goog.asserts.assert((value >= -32768) && (value < 32768));
286 this.buffer_.push((value >>> 0) & 0xFF);
287 this.buffer_.push((value >>> 8) & 0xFF);
296 jspb.BinaryEncoder.prototype.writeInt32 = function(value) { argument
297 goog.asserts.assert(value == Math.floor(value));
298 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
299 (value < jspb.BinaryConstants.TWO_TO_31));
300 this.buffer_.push((value >>> 0) & 0xFF);
301 this.buffer_.push((value >>> 8) & 0xFF);
302 this.buffer_.push((value >>> 16) & 0xFF);
303 this.buffer_.push((value >>> 24) & 0xFF);
312 jspb.BinaryEncoder.prototype.writeInt64 = function(value) { argument
313 goog.asserts.assert(value == Math.floor(value));
314 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
315 (value < jspb.BinaryConstants.TWO_TO_63));
316 jspb.utils.splitInt64(value);
327 jspb.BinaryEncoder.prototype.writeFloat = function(value) { argument
328 goog.asserts.assert((value >= -jspb.BinaryConstants.FLOAT32_MAX) &&
329 (value <= jspb.BinaryConstants.FLOAT32_MAX));
330 jspb.utils.splitFloat32(value);
340 jspb.BinaryEncoder.prototype.writeDouble = function(value) { argument
341 goog.asserts.assert((value >= -jspb.BinaryConstants.FLOAT64_MAX) &&
342 (value <= jspb.BinaryConstants.FLOAT64_MAX));
343 jspb.utils.splitFloat64(value);
353 jspb.BinaryEncoder.prototype.writeBool = function(value) { argument
354 goog.asserts.assert(goog.isBoolean(value));
355 this.buffer_.push(value ? 1 : 0);
363 jspb.BinaryEncoder.prototype.writeEnum = function(value) { argument
364 goog.asserts.assert(value == Math.floor(value));
365 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
366 (value < jspb.BinaryConstants.TWO_TO_31));
367 this.writeSignedVarint32(value);
410 jspb.BinaryEncoder.prototype.writeString = function(value) { argument
414 for (var i = 0; i < value.length; i++) {
415 var c = value.charCodeAt(i);