Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
native_storage.h
Go to the documentation of this file.
1// Copyright 2026 The Symbian SDK Authors.
2// Licensed under the Apache License, Version 2.0.
3
4#ifndef SYMBIAN_API_STORAGE_NATIVE_STORAGE_H_
5#define SYMBIAN_API_STORAGE_NATIVE_STORAGE_H_
6
7#include <cstdint>
8
9namespace symbian::api::storage {
10
11struct NativeFile;
12struct NativeDirectory;
13
15 char16_t name[256]{};
16 int name_length = 0;
17 bool is_directory = false;
18 bool is_read_only = false;
19 std::uint64_t size_bytes = 0;
20};
21
22extern "C" int SymbianDeviceFileOpen(const char16_t* path, int length,
23 NativeFile** output);
24extern "C" int SymbianDeviceWritableFileOpen(const char16_t* path, int length,
25 int mode, NativeFile** output);
27 const unsigned char* source,
28 int length);
30extern "C" int SymbianDeviceCreateDirectories(const char16_t* path, int length);
31extern "C" int SymbianDeviceFileSize(NativeFile* file, int* size);
33 unsigned char* output, int capacity,
34 int* bytes_read);
35extern "C" void SymbianDeviceFileClose(NativeFile* file);
36extern "C" int SymbianDeviceDirectoryOpen(const char16_t* path, int length,
37 NativeDirectory** output);
38extern "C" int SymbianDeviceDirectoryNext(NativeDirectory* directory,
40 bool* end);
41extern "C" void SymbianDeviceDirectoryClose(NativeDirectory* directory);
42
43} // namespace symbian::api::storage
44
45#endif // SYMBIAN_API_STORAGE_NATIVE_STORAGE_H_
Segment file
Definition e32.cc:60
Definition storage.h:17
int SymbianDeviceCreateDirectories(const char16_t *path, int length)
Definition native_storage.cc:123
void SymbianDeviceFileClose(NativeFile *file)
Definition native_storage.cc:23
int SymbianDeviceDirectoryOpen(const char16_t *path, int length, NativeDirectory **output)
Definition native_storage.cc:174
int SymbianDeviceWritableFileOpen(const char16_t *path, int length, int mode, NativeFile **output)
Definition native_storage.cc:65
void SymbianDeviceDirectoryClose(NativeDirectory *directory)
Definition native_storage.cc:162
int SymbianDeviceFileReadAt(NativeFile *file, int offset, unsigned char *output, int capacity, int *bytes_read)
Definition native_storage.cc:146
int SymbianDeviceFileSize(NativeFile *file, int *size)
Definition native_storage.cc:139
int SymbianDeviceFileWriteAt(NativeFile *file, int offset, const unsigned char *source, int length)
Definition native_storage.cc:106
int SymbianDeviceFileOpen(const char16_t *path, int length, NativeFile **output)
Definition native_storage.cc:35
int SymbianDeviceDirectoryNext(NativeDirectory *directory, NativeDirectoryEntry *output, bool *end)
Definition native_storage.cc:213
int SymbianDeviceFileFlush(NativeFile *file)
Definition native_storage.cc:116
uint32_t offset
Definition exports.cc:70
uint32_t size
Definition exports.cc:71
Definition native_storage.h:14
bool is_directory
Definition native_storage.h:17
bool is_read_only
Definition native_storage.h:18
char16_t name[256]
Definition native_storage.h:15
int name_length
Definition native_storage.h:16
std::uint64_t size_bytes
Definition native_storage.h:19
Definition native_storage.cc:17
Definition native_storage.cc:11