Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp48 bool JSSerializer::WriteType(SerializationUID id) in WriteType()
85 return WriteType(SerializationUID::JS_NULL); in WritePrimitiveValue()
88 return WriteType(SerializationUID::JS_UNDEFINED); in WritePrimitiveValue()
91 return WriteType(SerializationUID::JS_TRUE); in WritePrimitiveValue()
94 return WriteType(SerializationUID::JS_FALSE); in WritePrimitiveValue()
103 return WriteType(SerializationUID::HOLE); in WritePrimitiveValue()
110 if (!WriteType(SerializationUID::INT32)) { in WriteInt()
121 if (!WriteType(SerializationUID::DOUBLE)) { in WriteDouble()
133 return WriteType(SerializationUID::C_TRUE); in WriteBoolean()
135 return WriteType(SerializationUID::C_FALSE); in WriteBoolean()
[all …]
Djs_serializer.h40 enum class SerializationUID : uint8_t { enum
140 bool WriteType(SerializationUID uId);
152 bool WriteJSTypedArray(const JSHandle<JSTaggedValue> &value, SerializationUID uId);
196 SerializationUID ReadType();
203 JSHandle<JSTaggedValue> ReadJSError(SerializationUID uid);
211 JSHandle<JSTaggedValue> ReadJSTypedArray(SerializationUID uid);
213 JSHandle<JSTaggedValue> ReadJSArrayBuffer(SerializationUID uid);
218 bool JudgeType(SerializationUID targetUid);