/// <summary> /// Write variable encoded 16-bit unsigned integer /// </summary> public void WriteVarUInt16(ushort value) { if (position + IntegerHelper.MaxBytesVarInt16 > length) { Grow(IntegerHelper.MaxBytesVarInt16); } position = IntegerHelper.EncodeVarUInt16(buffer, value, position); }