c2pa-c
C++ API for c2pa-c library
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
75 {
76 s->seekg(offset, dir);
77 }
intptr_t stream_op(StreamContext *context, Op op)
Get stream from context, used by writer and flusher.
Definition c2pa_internal.hpp:157

◆ tell()

static int64_t c2pa::detail::StreamSeekTraits< std::istream >::tell ( std::istream *  s)
inlinestatic
78 {
79 return static_cast<int64_t>(s->tellg());
80 }

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