private void encode(Object value)
	{
		this.value = value;
		if (value==null)
		{
			type = 1;
			return;
		}
		if (value instanceof Dubble)       encodeDouble();
		if (value instanceof Bool)         encodeBool();
		if (value instanceof VLQ)          encodeVLQ();
		if (value instanceof VLQString)    encodeVLQString();
//		if (value instanceof VariantArray) encodeVariantArray();  TODO
//		if (value instanceof Dictionary)   encodeDictionary();    TODO
	}