MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / GetFileSize

Method GetFileSize

Sources/Shared/IO/AndroidAssetStream.cpp:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 std::int64_t AndroidAssetStream::GetFileSize(const Containers::StringView path)
251 {
252 off64_t assetLength = 0;
253 AAsset* asset = AAssetManager_open(_nativeActivity->assetManager, path.data(), AASSET_MODE_UNKNOWN);
254 if (asset != nullptr) {
255 assetLength = AAsset_getLength64(asset);
256 AAsset_close(asset);
257 }
258
259 return assetLength;
260 }
261
262 AAssetDir* AndroidAssetStream::OpenDirectory(const Containers::StringView path)
263 {

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected