Lines Matching refs:position
306 int ReadTextInner(const char* src, int position, int length, JSIValue& result)
308 if ((position < 0) || (length < 0)) {
332 ret = ReadFileImpl(g_uriFullPath, text, readLen, position, &actualLen);
352 double position = JSI::GetNumberProperty(args, FILE_POSITION);
355 int ret = ReadTextInner(src, static_cast<int>(position), static_cast<int>(length), result);
397 int ReadArrayFileInner(const char* path, size_t len, unsigned int position, JSIValue& result)
409 ret = ReadFileImpl(path, text, len, static_cast<int>(position), &actualLen);
442 double position = JSI::GetNumberProperty(args, FILE_POSITION);
446 if ((position < 0) || (length < 0)) {
457 ret = ReadArrayFileInner(g_uriFullPath, static_cast<int>(length), static_cast<int>(position), result);
486 double position = JSI::GetNumberProperty(args, FILE_POSITION);
494 if ((position < 0) || (arrayPtr == nullptr) || (type != TypedArrayType::JSI_UINT8_ARRAY)) {
499 ret = WriteArrayFile(g_uriFullPath, arrayPtr, length, static_cast<int>(position), append);