private Object decodeAMF0() throws NotImplementedException, EncodingException
	{
		int type = readByte();
		switch (type)
		{
		case 0x00:
			return readIntAMF0();

		case 0x02:
			return readStringAMF0();

		case 0x03:
			return readObjectAMF0();

		case 0x05:
			return null;

		case 0x11: // AMF3
			return decode();
		}

		throw new NotImplementedException("AMF0 type not supported: " + type);
	}