• Home
  • Raw
  • Download

Lines Matching refs:jspb

53 jspb.BinaryEncoder = function() {
62 jspb.BinaryEncoder.prototype.length = function() {
70 jspb.BinaryEncoder.prototype.end = function() {
83 jspb.BinaryEncoder.prototype.writeSplitVarint64 = function(lowBits, highBits) {
87 (lowBits < jspb.BinaryConstants.TWO_TO_32));
89 (highBits < jspb.BinaryConstants.TWO_TO_32));
107 jspb.BinaryEncoder.prototype.writeUnsignedVarint32 = function(value) {
110 (value < jspb.BinaryConstants.TWO_TO_32));
126 jspb.BinaryEncoder.prototype.writeSignedVarint32 = function(value) {
128 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
129 (value < jspb.BinaryConstants.TWO_TO_31));
155 jspb.BinaryEncoder.prototype.writeUnsignedVarint64 = function(value) {
158 (value < jspb.BinaryConstants.TWO_TO_64));
159 jspb.utils.splitInt64(value);
160 this.writeSplitVarint64(jspb.utils.split64Low,
161 jspb.utils.split64High);
171 jspb.BinaryEncoder.prototype.writeSignedVarint64 = function(value) {
173 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
174 (value < jspb.BinaryConstants.TWO_TO_63));
175 jspb.utils.splitInt64(value);
176 this.writeSplitVarint64(jspb.utils.split64Low,
177 jspb.utils.split64High);
186 jspb.BinaryEncoder.prototype.writeZigzagVarint32 = function(value) {
188 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
189 (value < jspb.BinaryConstants.TWO_TO_31));
200 jspb.BinaryEncoder.prototype.writeZigzagVarint64 = function(value) {
202 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
203 (value < jspb.BinaryConstants.TWO_TO_63));
204 jspb.utils.splitZigzag64(value);
205 this.writeSplitVarint64(jspb.utils.split64Low,
206 jspb.utils.split64High);
215 jspb.BinaryEncoder.prototype.writeUint8 = function(value) {
227 jspb.BinaryEncoder.prototype.writeUint16 = function(value) {
240 jspb.BinaryEncoder.prototype.writeUint32 = function(value) {
243 (value < jspb.BinaryConstants.TWO_TO_32));
256 jspb.BinaryEncoder.prototype.writeUint64 = function(value) {
259 (value < jspb.BinaryConstants.TWO_TO_64));
260 jspb.utils.splitUint64(value);
261 this.writeUint32(jspb.utils.split64Low);
262 this.writeUint32(jspb.utils.split64High);
271 jspb.BinaryEncoder.prototype.writeInt8 = function(value) {
283 jspb.BinaryEncoder.prototype.writeInt16 = function(value) {
296 jspb.BinaryEncoder.prototype.writeInt32 = function(value) {
298 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
299 (value < jspb.BinaryConstants.TWO_TO_31));
312 jspb.BinaryEncoder.prototype.writeInt64 = function(value) {
314 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) &&
315 (value < jspb.BinaryConstants.TWO_TO_63));
316 jspb.utils.splitInt64(value);
317 this.writeUint32(jspb.utils.split64Low);
318 this.writeUint32(jspb.utils.split64High);
327 jspb.BinaryEncoder.prototype.writeFloat = function(value) {
328 goog.asserts.assert((value >= -jspb.BinaryConstants.FLOAT32_MAX) &&
329 (value <= jspb.BinaryConstants.FLOAT32_MAX));
330 jspb.utils.splitFloat32(value);
331 this.writeUint32(jspb.utils.split64Low);
340 jspb.BinaryEncoder.prototype.writeDouble = function(value) {
341 goog.asserts.assert((value >= -jspb.BinaryConstants.FLOAT64_MAX) &&
342 (value <= jspb.BinaryConstants.FLOAT64_MAX));
343 jspb.utils.splitFloat64(value);
344 this.writeUint32(jspb.utils.split64Low);
345 this.writeUint32(jspb.utils.split64High);
353 jspb.BinaryEncoder.prototype.writeBool = function(value) {
363 jspb.BinaryEncoder.prototype.writeEnum = function(value) {
365 goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_31) &&
366 (value < jspb.BinaryConstants.TWO_TO_31));
375 jspb.BinaryEncoder.prototype.writeBytes = function(bytes) {
385 jspb.BinaryEncoder.prototype.writeVarintHash64 = function(hash) {
386 jspb.utils.splitHash64(hash);
387 this.writeSplitVarint64(jspb.utils.split64Low,
388 jspb.utils.split64High);
397 jspb.BinaryEncoder.prototype.writeFixedHash64 = function(hash) {
398 jspb.utils.splitHash64(hash);
399 this.writeUint32(jspb.utils.split64Low);
400 this.writeUint32(jspb.utils.split64High);
410 jspb.BinaryEncoder.prototype.writeString = function(value) {