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

#include <c2pa_internal.hpp>

Static Public Member Functions

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

Member Function Documentation

◆ seek()

void c2pa::detail::StreamSeekTraits< std::ostream >::seek ( std::ostream * s,
intptr_t offset,
std::ios_base::seekdir dir )
inlinestatic
100 {
101 s->seekp(offset, dir);
102 }
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::ostream >::tell ( std::ostream * s)
inlinestatic
103 {
104 return static_cast<int64_t>(s->tellp());
105 }

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