예제 #1
0
파일: amftest.hpp 프로젝트: Ventero/amf-cpp
static inline void isEqual(
	const std::vector<u8>& expected,
	const AmfItem& value,
	SerializationContext * ctx = nullptr) {

	std::unique_ptr<SerializationContext> dummy;
	if (!ctx) {
		dummy.reset(new SerializationContext());
		ctx = dummy.get();
	}

	v8 serialized = value.serialize(*ctx);
	isEqual(expected, serialized);
}
예제 #2
0
	PacketMessage(std::string targetUri, std::string responseUri, const AmfItem& value) :
		target(targetUri), response(responseUri), value(value.serialize()) { };
예제 #3
0
	PacketHeader(std::string name, bool mustUnderstand, const AmfItem& value) :
		name(name), mustUnderstand(mustUnderstand), value(value.serialize()) { };