コード例 #1
0
 public int pushLimit(int paramInt) throws InvalidProtocolBufferNanoException {
   if (paramInt < 0) throw InvalidProtocolBufferNanoException.negativeSize();
   paramInt += bufferPos;
   int i = currentLimit;
   if (paramInt > i) throw InvalidProtocolBufferNanoException.truncatedMessage();
   currentLimit = paramInt;
   recomputeBufferSizeAfterLimit();
   return i;
 }
コード例 #2
0
 public void popLimit(int paramInt) {
   currentLimit = paramInt;
   recomputeBufferSizeAfterLimit();
 }