fromNumber method

VarInt fromNumber(
  1. int n
)

Implementation

VarInt fromNumber(int n) {
  this.buf = new Bw().writeVarIntNum(n).toBuffer();
  return this;
}