Lines Matching refs:numBytes
133 Validator.prototype.isValidRange = function(start, numBytes) { argument
136 if (start < this.offset || numBytes <= 0 ||
138 !Number.isSafeInteger(numBytes))
141 var newOffset = start + numBytes;
148 Validator.prototype.claimRange = function(start, numBytes) { argument
149 if (this.isValidRange(start, numBytes)) {
150 this.offset = start + numBytes;
244 var numBytes = this.message.buffer.getUint32(offset);
246 if (numBytes < minNumBytes)
249 if (!this.claimRange(offset, numBytes))
256 var numBytes = this.message.buffer.getUint32(offset);
263 if (numBytes == versionSizes[i].numBytes)
268 } else if (numBytes < versionSizes[versionSizes.length-1].numBytes) {
286 var numBytes = this.message.getHeaderNumBytes();
290 (version == 0 && numBytes == internal.kMessageV0HeaderSize) ||
291 (version == 1 && numBytes == internal.kMessageV1HeaderSize) ||
292 (version == 2 && numBytes == internal.kMessageV2HeaderSize) ||
293 (version > 2 && numBytes >= internal.kMessageV2HeaderSize);
508 var numBytes = this.message.buffer.getUint32(offset);
516 if (numBytes < internal.kArrayHeaderSize + elementsTotalSize)
524 if (!this.claimRange(offset, numBytes))