From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/namespacearmnn_utils_1_1_filesystem.xhtml | 168 ++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 20.02/namespacearmnn_utils_1_1_filesystem.xhtml (limited to '20.02/namespacearmnn_utils_1_1_filesystem.xhtml') diff --git a/20.02/namespacearmnn_utils_1_1_filesystem.xhtml b/20.02/namespacearmnn_utils_1_1_filesystem.xhtml new file mode 100644 index 0000000000..c387d946fb --- /dev/null +++ b/20.02/namespacearmnn_utils_1_1_filesystem.xhtml @@ -0,0 +1,168 @@ + + + + + + + + + + + + + +ArmNN: armnnUtils::Filesystem Namespace Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
armnnUtils::Filesystem Namespace Reference
+
+
+ + + + + + +

+Functions

long long GetFileSize (const char *path)
 
bool Remove (const char *path)
 
+

Function Documentation

+ +

◆ GetFileSize()

+ +
+
+ + + + + + + + +
long long GetFileSize (const char * path)
+
+ +

Definition at line 21 of file Filesystem.cpp.

+ +

Referenced by while().

+
22 {
23 #if defined(__ANDROID__)
24  struct stat statusBuffer;
25  if (stat(path, & statusBuffer) != 0)
26  {
27  return -1;
28  }
29  return statusBuffer.st_size;
30 #elif defined(__unix__)
31  struct stat statusBuffer;
32  if (stat(path, & statusBuffer) != 0)
33  {
34  return -1;
35  }
36  return static_cast<long long>(statusBuffer.st_size);
37 #elif defined(_MSC_VER)
38  WIN32_FILE_ATTRIBUTE_DATA attr;
39  if (::GetFileAttributesEx(path, GetFileExInfoStandard, &attr) == 0)
40  {
41  return -1;
42  }
43  return attr.nFileSizeLow;
44 #endif
45 }
+
+
+ +

◆ Remove()

+ +
+
+ + + + + + + + +
bool Remove (const char * path)
+
+ +

Definition at line 47 of file Filesystem.cpp.

+ +

Referenced by Graph::DetachObservable(), and while().

+
48 {
49 #if defined(__unix__)
50  return remove(path) == 0;
51 #elif defined(_MSC_VER)
52  return ::DeleteFile(path);
53 #endif
54 }
+
+
+
+
+ + + + -- cgit v1.2.1