39 #ifndef BLOCXX_FILE_HPP_INCLUDE_GUARD_
40 #define BLOCXX_FILE_HPP_INCLUDE_GUARD_
41 #include "blocxx/BLOCXX_config.h"
47 namespace BLOCXX_NAMESPACE
54 class BLOCXX_COMMON_API
File
113 size_t read(
void* bfr,
size_t numberOfBytes, Int64 offset=-1L)
const
127 size_t write(
const void* bfr,
size_t numberOfBytes, Int64 offset=-1L)
141 Int64
seek(Int64 offset,
int whence)
const
204 int getLock(ELockType type = E_WRITE_LOCK);
220 int tryLock(ELockType type = E_WRITE_LOCK);
239 bool operator==(const
File& rhs)
241 return m_hdl == rhs.m_hdl;