Loading [MathJax]/extensions/tex2jax.js
Loading...
Searching...
No Matches
6#include <azure/core/platform.hpp>
11namespace Azure {
namespace Storage {
namespace _internal {
13#if defined(AZ_PLATFORM_WINDOWS)
14 using FileHandle =
void*;
15#elif defined(AZ_PLATFORM_POSIX)
16 using FileHandle = int;
19 class FileReader final {
21 FileReader(
const std::string& filename);
25 FileHandle GetHandle()
const {
return m_handle; }
27 int64_t GetFileSize()
const {
return m_fileSize; }
34 class FileWriter final {
36 FileWriter(
const std::string& filename);
40 FileHandle GetHandle()
const {
return m_handle; }
42 void Write(
const uint8_t* buffer,
size_t length, int64_t offset);