HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::ResourceView Class Referenceabstract

#include <TTauri/Foundation/ResourceView.hpp>

Inheritance diagram for tt::ResourceView:
tt::FileView tt::StaticResourceView

Public Member Functions

 ResourceView (ResourceView const &other)=default
 
 ResourceView (ResourceView &&other)=default
 
ResourceViewoperator= (ResourceView const &other)=default
 
ResourceViewoperator= (ResourceView &&other)=default
 
virtual size_t offset () const noexcept=0
 Offset into the resource file.
 
virtual nonstd::span< std::byte const > bytes () const noexcept=0
 Get a span to the memory mapping.
 
virtual std::string_view string_view () const noexcept=0
 Get a span to the memory mapping.
 
 operator std::string_view () const noexcept
 
virtual size_t size () const noexcept=0
 Size of the memory mapping.
 
virtual std::byte const * data () const noexcept=0
 Pointer to the memory mapping.
 

Detailed Description

A read-only memory mapping of a resource.

Member Function Documentation

◆ bytes()

virtual nonstd::span< std::byte const > tt::ResourceView::bytes ( ) const
pure virtualnoexcept

Get a span to the memory mapping.

Implemented in tt::FileView, and tt::StaticResourceView.

◆ data()

virtual std::byte const * tt::ResourceView::data ( ) const
pure virtualnoexcept

Pointer to the memory mapping.

Implemented in tt::FileView, and tt::StaticResourceView.

◆ offset()

virtual size_t tt::ResourceView::offset ( ) const
pure virtualnoexcept

Offset into the resource file.

Returns
offset into the resource file.

Implemented in tt::FileView, and tt::StaticResourceView.

◆ size()

virtual size_t tt::ResourceView::size ( ) const
pure virtualnoexcept

Size of the memory mapping.

Implemented in tt::FileView, and tt::StaticResourceView.

◆ string_view()

virtual std::string_view tt::ResourceView::string_view ( ) const
pure virtualnoexcept

Get a span to the memory mapping.

Implemented in tt::FileView, and tt::StaticResourceView.


The documentation for this class was generated from the following file: