|
HikoGUI
A low latency retained GUI
|
#include <TTauri/Foundation/FileView.hpp>
Public Member Functions | |
| FileView (std::shared_ptr< FileMapping > const &mappingObject, size_t offset, size_t size) | |
| FileView (URL const &location, AccessMode accessMode=AccessMode::OpenForRead, size_t offset=0, size_t size=0) | |
| FileView (FileView const &other) noexcept | |
| FileView (FileView &&other) noexcept | |
| FileView & | operator= (FileView const &other) noexcept |
| FileView & | operator= (FileView &&other) noexcept |
| AccessMode | accessMode () const noexcept |
| URL const & | location () const noexcept |
| size_t | offset () const noexcept override |
| size_t | size () const noexcept override |
| std::byte * | data () noexcept |
| std::byte const * | data () const noexcept override |
| nonstd::span< std::byte > | bytes () noexcept |
| nonstd::span< std::byte const > | bytes () const noexcept override |
| std::string_view | string_view () noexcept |
| std::string_view | string_view () const noexcept override |
| void | flush (void *base, size_t size) |
Public Member Functions inherited from tt::ResourceView | |
| ResourceView (ResourceView const &other)=default | |
| ResourceView (ResourceView &&other)=default | |
| ResourceView & | operator= (ResourceView const &other)=default |
| ResourceView & | operator= (ResourceView &&other)=default |
| operator std::string_view () const noexcept | |
Static Public Member Functions | |
| static std::unique_ptr< ResourceView > | loadView (URL const &location) |
Map a file into virtual memory.
|
inlinenoexcept |
Access mode of the opened file.
|
inlineoverridevirtualnoexcept |
Span to the mapping into memory.
Implements tt::ResourceView.
|
inlinenoexcept |
Span to the mapping into memory.
|
inlineoverridevirtualnoexcept |
Pointer to the mapping into memory.
Implements tt::ResourceView.
|
inlinenoexcept |
Pointer to the mapping into memory.
| void tt::FileView::flush | ( | void * | base, |
| size_t | size ) |
Flush changes in memory to the open file.
| base | start location of the memory to flush. |
| Number | of bytes from the base of the memory region to flush. |
|
inlinestatic |
Load a view of a resource. This is used when the resource that needs to be opened is a file.
|
inlineoverridevirtualnoexcept |
Offset of the mapping into the file.
Implements tt::ResourceView.
|
inlineoverridevirtualnoexcept |
Number of bytes which is mapped to memory.
Implements tt::ResourceView.
|
inlineoverridevirtualnoexcept |
String view to the mapping into memory.
Implements tt::ResourceView.
|
inlinenoexcept |
String view to the mapping into memory.