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

#include <c2pa_internal.hpp>

Static Public Member Functions

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

Member Function Documentation

◆ seek()

void c2pa::detail::StreamSeekTraits< std::iostream >::seek ( std::iostream * s,
intptr_t offset,
std::ios_base::seekdir dir )
inlinestatic
110 {
111 s->seekg(offset, dir);
112 s->seekp(offset, dir);
113 }
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::iostream >::tell ( std::iostream * s)
inlinestatic
114 {
115 return static_cast<int64_t>(s->tellp());
116 }

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