c2pa-cpp
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()

static void c2pa::detail::StreamSeekTraits< std::istream >::seek ( std::istream *  s,
intptr_t  offset,
std::ios_base::seekdir  dir 
)
inlinestatic
80 {
81 s->seekg(offset, dir);
82 }
intptr_t stream_op(StreamContext *context, Op op)
Get stream from context, used by writer and flusher.
Definition c2pa_internal.hpp:162

◆ tell()

static int64_t c2pa::detail::StreamSeekTraits< std::istream >::tell ( std::istream *  s)
inlinestatic
83 {
84 return static_cast<int64_t>(s->tellg());
85 }

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