Home
last modified time | relevance | path

Searched refs:jsObj (Results 1 – 20 of 20) sorted by relevance

/expo/ios/versioned/sdk48/ExpoGL/common/
H A DABI48_0_0EXJsiArgsTransform.h168 auto jsObj = jsArgv->asObject(runtime); in unpackArg() local
169 if (jsObj.isArray(runtime)) { in unpackArg()
170 return jsArrayToVector<typename T::value_type>(runtime, jsObj.asArray(runtime)); in unpackArg()
171 } else if (isTypedArray(runtime, jsObj)) { in unpackArg()
173 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
177 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
181 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
H A DABI48_0_0EXTypedArrayApi.cpp128 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
135 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in isTypedArray()
143 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in getTypedArray() argument
150 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in getTypedArray()
152 return TypedArrayBase(runtime, jsObj); in getTypedArray()
158 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj) { in arrayBufferToVector() argument
159 if (!jsObj.isArrayBuffer(runtime)) { in arrayBufferToVector()
162 auto jsArrayBuffer = jsObj.getArrayBuffer(runtime); in arrayBufferToVector()
H A DABI48_0_0EXTypedArrayApi.h117 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
118 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
120 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj);
/expo/ios/versioned/sdk47/EXGL/common/
H A DABI47_0_0EXJsiArgsTransform.h168 auto jsObj = jsArgv->asObject(runtime); in unpackArg() local
169 if (jsObj.isArray(runtime)) { in unpackArg()
170 return jsArrayToVector<typename T::value_type>(runtime, jsObj.asArray(runtime)); in unpackArg()
171 } else if (isTypedArray(runtime, jsObj)) { in unpackArg()
173 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
177 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
181 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
H A DABI47_0_0EXTypedArrayApi.cpp128 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
135 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in isTypedArray()
143 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in getTypedArray() argument
150 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in getTypedArray()
152 return TypedArrayBase(runtime, jsObj); in getTypedArray()
158 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj) { in arrayBufferToVector() argument
159 if (!jsObj.isArrayBuffer(runtime)) { in arrayBufferToVector()
162 auto jsArrayBuffer = jsObj.getArrayBuffer(runtime); in arrayBufferToVector()
H A DABI47_0_0EXTypedArrayApi.h117 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
118 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
120 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj);
/expo/packages/expo-gl/common/
H A DEXJsiArgsTransform.h168 auto jsObj = jsArgv->asObject(runtime); in unpackArg() local
169 if (jsObj.isArray(runtime)) { in unpackArg()
170 return jsArrayToVector<typename T::value_type>(runtime, jsObj.asArray(runtime)); in unpackArg()
171 } else if (isTypedArray(runtime, jsObj)) { in unpackArg()
173 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
177 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
181 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
H A DEXTypedArrayApi.cpp128 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
135 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in isTypedArray()
143 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in getTypedArray() argument
150 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in getTypedArray()
152 return TypedArrayBase(runtime, jsObj); in getTypedArray()
158 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj) { in arrayBufferToVector() argument
159 if (!jsObj.isArrayBuffer(runtime)) { in arrayBufferToVector()
162 auto jsArrayBuffer = jsObj.getArrayBuffer(runtime); in arrayBufferToVector()
H A DEXTypedArrayApi.h117 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
118 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
120 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj);
/expo/ios/versioned/sdk49/ExpoGL/common/
H A DABI49_0_0EXJsiArgsTransform.h168 auto jsObj = jsArgv->asObject(runtime); in unpackArg() local
169 if (jsObj.isArray(runtime)) { in unpackArg()
170 return jsArrayToVector<typename T::value_type>(runtime, jsObj.asArray(runtime)); in unpackArg()
171 } else if (isTypedArray(runtime, jsObj)) { in unpackArg()
173 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
177 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
181 return getTypedArray(runtime, std::move(jsObj)) in unpackArg()
H A DABI49_0_0EXTypedArrayApi.cpp128 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
135 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in isTypedArray()
143 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in getTypedArray() argument
150 .callWithThis(runtime, runtime.global(), {jsi::Value(runtime, jsObj)}); in getTypedArray()
152 return TypedArrayBase(runtime, jsObj); in getTypedArray()
158 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj) { in arrayBufferToVector() argument
159 if (!jsObj.isArrayBuffer(runtime)) { in arrayBufferToVector()
162 auto jsArrayBuffer = jsObj.getArrayBuffer(runtime); in arrayBufferToVector()
H A DABI49_0_0EXTypedArrayApi.h117 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
118 TypedArrayBase getTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
120 std::vector<uint8_t> arrayBufferToVector(jsi::Runtime &runtime, jsi::Object &jsObj);
/expo/packages/expo-modules-core/common/cpp/
H A DTypedArray.cpp58 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
65 .callWithThis(runtime, ArrayBuffer, {jsi::Value(runtime, jsObj)}); in isTypedArray()
H A DTypedArray.h46 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
/expo/ios/versioned/sdk49/ExpoModulesCore/common/cpp/
H A DTypedArray.cpp58 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
65 .callWithThis(runtime, ArrayBuffer, {jsi::Value(runtime, jsObj)}); in isTypedArray()
H A DTypedArray.h46 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
/expo/ios/versioned/sdk48/ExpoModulesCore/common/cpp/
H A DTypedArray.cpp58 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
65 .callWithThis(runtime, ArrayBuffer, {jsi::Value(runtime, jsObj)}); in isTypedArray()
H A DTypedArray.h46 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);
/expo/ios/versioned/sdk47/ExpoModulesCore/common/cpp/
H A DTypedArray.cpp58 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj) { in isTypedArray() argument
65 .callWithThis(runtime, ArrayBuffer, {jsi::Value(runtime, jsObj)}); in isTypedArray()
H A DTypedArray.h46 bool isTypedArray(jsi::Runtime &runtime, const jsi::Object &jsObj);