Exemple #1
0
 @Override
 public void writeAsString(final int value)
     throws IndexOutOfBoundsException, WriteNotSupportedException {
   final int size = value < 0 ? Buffers.stringSize(-value) + 1 : Buffers.stringSize(value);
   if (!checkWritableBytesSafe(size)) {
     throw new IndexOutOfBoundsException();
   }
   Buffers.getBytes(value, this.lowerBoundary + this.writerIndex + size, this.buffer);
   this.writerIndex += size;
 }