c2pa-cpp v0.27.0
C++ API for the C2PA SDK
Loading...
Searching...
No Matches
c2pa::detail::StreamSeekTraits< std::istream > Struct Reference

#include <c2pa_internal.hpp>

Static Public Member Functions

static void seek (std::istream *s, intptr_t offset, std::ios_base::seekdir dir)
static int64_t tell (std::istream *s)

Member Function Documentation

◆ seek()

void c2pa::detail::StreamSeekTraits< std::istream >::seek ( std::istream * s,
intptr_t offset,
std::ios_base::seekdir dir )
inlinestatic
90 {
91 s->seekg(offset, dir);
92 }
Traits (templated): how to seek and get position for a given stream type.
Definition c2pa_internal.hpp:86

◆ tell()

int64_t c2pa::detail::StreamSeekTraits< std::istream >::tell ( std::istream * s)
inlinestatic
93 {
94 return static_cast<int64_t>(s->tellg());
95 }

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