• Home
  • Raw
  • Download

Lines Matching refs:jspb

66 jspb.BinaryReader = function(opt_bytes, opt_start, opt_length) {
71 this.decoder_ = jspb.BinaryDecoder.alloc(opt_bytes, opt_start, opt_length);
83 this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
90 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
110 jspb.BinaryReader.instanceCache_ = [];
122 jspb.BinaryReader.alloc =
124 if (jspb.BinaryReader.instanceCache_.length) {
125 var newReader = jspb.BinaryReader.instanceCache_.pop();
131 return new jspb.BinaryReader(opt_bytes, opt_start, opt_length);
144 jspb.BinaryReader.prototype.alloc = jspb.BinaryReader.alloc;
150 jspb.BinaryReader.prototype.free = function() {
152 this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
153 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
157 if (jspb.BinaryReader.instanceCache_.length < 100) {
158 jspb.BinaryReader.instanceCache_.push(this);
167 jspb.BinaryReader.prototype.getFieldCursor = function() {
176 jspb.BinaryReader.prototype.getCursor = function() {
185 jspb.BinaryReader.prototype.getBuffer = function() {
194 jspb.BinaryReader.prototype.getFieldNumber = function() {
203 jspb.BinaryReader.prototype.getWireType = function() {
212 jspb.BinaryReader.prototype.isEndGroup = function() {
213 return this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP;
221 jspb.BinaryReader.prototype.getError = function() {
232 jspb.BinaryReader.prototype.setBlock = function(bytes, start, length) {
234 this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
235 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
243 jspb.BinaryReader.prototype.reset = function() {
245 this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
246 this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
254 jspb.BinaryReader.prototype.advance = function(count) {
265 jspb.BinaryReader.prototype.nextField = function() {
287 if (nextWireType != jspb.BinaryConstants.WireType.VARINT &&
288 nextWireType != jspb.BinaryConstants.WireType.FIXED32 &&
289 nextWireType != jspb.BinaryConstants.WireType.FIXED64 &&
290 nextWireType != jspb.BinaryConstants.WireType.DELIMITED &&
291 nextWireType != jspb.BinaryConstants.WireType.START_GROUP &&
292 nextWireType != jspb.BinaryConstants.WireType.END_GROUP) {
308 jspb.BinaryReader.prototype.unskipHeader = function() {
316 jspb.BinaryReader.prototype.skipMatchingFields = function() {
333 jspb.BinaryReader.prototype.skipVarintField = function() {
334 if (this.nextWireType_ != jspb.BinaryConstants.WireType.VARINT) {
347 jspb.BinaryReader.prototype.skipDelimitedField = function() {
348 if (this.nextWireType_ != jspb.BinaryConstants.WireType.DELIMITED) {
362 jspb.BinaryReader.prototype.skipFixed32Field = function() {
363 if (this.nextWireType_ != jspb.BinaryConstants.WireType.FIXED32) {
376 jspb.BinaryReader.prototype.skipFixed64Field = function() {
377 if (this.nextWireType_ != jspb.BinaryConstants.WireType.FIXED64) {
390 jspb.BinaryReader.prototype.skipGroup = function() {
400 jspb.BinaryConstants.WireType.START_GROUP) {
404 jspb.BinaryConstants.WireType.END_GROUP) {
420 jspb.BinaryReader.prototype.skipField = function() {
422 case jspb.BinaryConstants.WireType.VARINT:
425 case jspb.BinaryConstants.WireType.FIXED64:
428 case jspb.BinaryConstants.WireType.DELIMITED:
431 case jspb.BinaryConstants.WireType.FIXED32:
434 case jspb.BinaryConstants.WireType.START_GROUP:
448 jspb.BinaryReader.prototype.registerReadCallback =
463 jspb.BinaryReader.prototype.runReadCallback = function(callbackName) {
476 jspb.BinaryReader.prototype.readAny = function(fieldType) {
477 this.nextWireType_ = jspb.BinaryConstants.FieldTypeToWireType(fieldType);
478 var fieldTypes = jspb.BinaryConstants.FieldType;
535 jspb.BinaryReader.prototype.readMessage = function(message, reader) {
537 this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
564 jspb.BinaryReader.prototype.readGroup =
568 this.nextWireType_ == jspb.BinaryConstants.WireType.START_GROUP);
576 this.nextWireType_ != jspb.BinaryConstants.WireType.END_GROUP) {
587 jspb.BinaryReader.prototype.getFieldDecoder = function() {
589 this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
596 jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(), start, length);
608 jspb.BinaryReader.prototype.readInt32 = function() {
610 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
624 jspb.BinaryReader.prototype.readInt32String = function() {
626 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
637 jspb.BinaryReader.prototype.readInt64 = function() {
639 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
653 jspb.BinaryReader.prototype.readInt64String = function() {
655 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
666 jspb.BinaryReader.prototype.readUint32 = function() {
668 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
682 jspb.BinaryReader.prototype.readUint32String = function() {
684 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
695 jspb.BinaryReader.prototype.readUint64 = function() {
697 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
711 jspb.BinaryReader.prototype.readUint64String = function() {
713 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
725 jspb.BinaryReader.prototype.readSint32 = function() {
727 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
739 jspb.BinaryReader.prototype.readSint64 = function() {
741 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
753 jspb.BinaryReader.prototype.readFixed32 = function() {
755 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
767 jspb.BinaryReader.prototype.readFixed64 = function() {
769 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
781 jspb.BinaryReader.prototype.readSfixed32 = function() {
783 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
795 jspb.BinaryReader.prototype.readSfixed64 = function() {
797 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
808 jspb.BinaryReader.prototype.readFloat = function() {
810 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
821 jspb.BinaryReader.prototype.readDouble = function() {
823 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
834 jspb.BinaryReader.prototype.readBool = function() {
836 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
847 jspb.BinaryReader.prototype.readEnum = function() {
849 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
860 jspb.BinaryReader.prototype.readString = function() {
862 this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
874 jspb.BinaryReader.prototype.readBytes = function() {
876 this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
889 jspb.BinaryReader.prototype.readVarintHash64 = function() {
891 this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
903 jspb.BinaryReader.prototype.readFixedHash64 = function() {
905 this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
916 jspb.BinaryReader.prototype.readPackedField_ = function(decodeMethod) {
918 this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
935 jspb.BinaryReader.prototype.readPackedInt32 = function() {
945 jspb.BinaryReader.prototype.readPackedInt32String = function() {
955 jspb.BinaryReader.prototype.readPackedInt64 = function() {
965 jspb.BinaryReader.prototype.readPackedInt64String = function() {
975 jspb.BinaryReader.prototype.readPackedUint32 = function() {
985 jspb.BinaryReader.prototype.readPackedUint32String = function() {
995 jspb.BinaryReader.prototype.readPackedUint64 = function() {
1005 jspb.BinaryReader.prototype.readPackedUint64String = function() {
1015 jspb.BinaryReader.prototype.readPackedSint32 = function() {
1025 jspb.BinaryReader.prototype.readPackedSint64 = function() {
1035 jspb.BinaryReader.prototype.readPackedFixed32 = function() {
1045 jspb.BinaryReader.prototype.readPackedFixed64 = function() {
1055 jspb.BinaryReader.prototype.readPackedSfixed32 = function() {
1065 jspb.BinaryReader.prototype.readPackedSfixed64 = function() {
1075 jspb.BinaryReader.prototype.readPackedFloat = function() {
1085 jspb.BinaryReader.prototype.readPackedDouble = function() {
1095 jspb.BinaryReader.prototype.readPackedBool = function() {
1105 jspb.BinaryReader.prototype.readPackedEnum = function() {
1115 jspb.BinaryReader.prototype.readPackedVarintHash64 = function() {
1125 jspb.BinaryReader.prototype.readPackedFixedHash64 = function() {