MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / size

Method size

lib/ArduinoNative/src/FS.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 *****************************************************************************/
63
64size_t File::size() const
65{
66 size_t fileSize = 0U;
67 size_t currPos = ftell(m_fd);
68
69 if (0 == fseek(m_fd, 0, SEEK_END))
70 {
71 long pos = ftell(m_fd);
72
73 if (0 <= pos)
74 {
75 fileSize = pos;
76 }
77
78 (void)fseek(m_fd, currPos, SEEK_SET);
79 }
80
81 return fileSize;
82}
83
84/******************************************************************************
85 * Protected Methods

Callers 15

lengthMethod · 0.80
openMethod · 0.80
registerTopicsMethod · 0.80
unregisterTopicsMethod · 0.80
setTopicMethod · 0.80
setTopicMethod · 0.80
loadDiscoveryInfoMethod · 0.80
getListMethod · 0.80
handleWebResponseMethod · 0.80
mqttTopicCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected