Home
last modified time | relevance | path

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

/ohos5.0/base/web/webview/ohos_interface/ohos_glue/base/bridge/
H A Dark_web_bridge_helper.cpp125 static const int SINGLE_READ_SIZE = 5 * 1024 * 1024; in PrereadLibFile() local
126 char* buf = new (std::nothrow) char[SINGLE_READ_SIZE]; in PrereadLibFile()
135 int readCnt = stats.st_size / SINGLE_READ_SIZE; in PrereadLibFile()
136 if (readCnt * SINGLE_READ_SIZE < stats.st_size) { in PrereadLibFile()
141 (void)read(fd, buf, SINGLE_READ_SIZE); in PrereadLibFile()