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

#include <ttauri/resource_view.hpp>

Inheritance diagram for tt::resource_view:
tt::file_view tt::static_resource_view

Public Member Functions

 resource_view (resource_view const &other)=default
 
 resource_view (resource_view &&other)=default
 
resource_viewoperator= (resource_view const &other)=default
 
resource_viewoperator= (resource_view &&other)=default
 
virtual size_t offset () const noexcept=0
 Offset into the resource file.
 
virtual std::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::span< std::byte const > () 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 std::span< std::byte const > tt::resource_view::bytes ( ) const
pure virtualnoexcept

Get a span to the memory mapping.

Implemented in tt::file_view, and tt::static_resource_view.

◆ data()

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

Pointer to the memory mapping.

Implemented in tt::file_view, and tt::static_resource_view.

◆ offset()

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

Offset into the resource file.

Returns
offset into the resource file.

Implemented in tt::file_view, and tt::static_resource_view.

◆ size()

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

Size of the memory mapping.

Implemented in tt::file_view, and tt::static_resource_view.

◆ string_view()

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

Get a span to the memory mapping.

Implemented in tt::file_view, and tt::static_resource_view.


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