Home
last modified time | relevance | path

Searched refs:SerializationUID (Results 1 – 2 of 2) sorted by relevance

/ark/js_runtime/ecmascript/
Djs_serializer.cpp37 bool JSSerializer::WriteType(SerializationUID id) in WriteType()
63 return WriteType(SerializationUID::JS_NULL); in WritePrimitiveValue()
66 return WriteType(SerializationUID::JS_UNDEFINED); in WritePrimitiveValue()
69 return WriteType(SerializationUID::JS_TRUE); in WritePrimitiveValue()
72 return WriteType(SerializationUID::JS_FALSE); in WritePrimitiveValue()
81 return WriteType(SerializationUID::HOLE); in WritePrimitiveValue()
89 if (!WriteType(SerializationUID::INT32)) { in WriteInt()
102 if (!WriteType(SerializationUID::DOUBLE)) { in WriteDouble()
115 return WriteType(SerializationUID::C_TRUE); in WriteBoolean()
117 return WriteType(SerializationUID::C_FALSE); in WriteBoolean()
[all …]
Djs_serializer.h31 enum class SerializationUID : uint8_t { enum
99 bool WriteType(SerializationUID uId);
111 bool WriteJSTypedArray(const JSHandle<JSTaggedValue> &value, SerializationUID uId);
147 SerializationUID ReadType();
148 JSHandle<JSTaggedValue> ReadJSError(SerializationUID uid);
156 JSHandle<JSTaggedValue> ReadJSTypedArray(SerializationUID uid);
160 bool JudgeType(SerializationUID targetUid);