public void writeNumber(long l) throws IOException, JsonGenerationException { // up to 20 digits, minus sign _verifyValueWrite("write number"); if ((_outputTail + 21) >= _outputEnd) { _flushBuffer(); } _outputTail = NumberOutput.outputLong(l, _outputBuffer, _outputTail); }
public void writeNumber(int i) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); // up to 10 digits, minus sign if ((_outputTail + 11) >= _outputEnd) { _flushBuffer(); } _outputTail = NumberOutput.outputInt(i, _outputBuffer, _outputTail); }