c2pa-c
C++ API for c2pa-c library
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()

static void c2pa::detail::StreamSeekTraits< std::iostream >::seek ( std::iostream *  s,
intptr_t  offset,
std::ios_base::seekdir  dir 
)
inlinestatic
95 {
96 s->seekg(offset, dir);
97 s->seekp(offset, dir);
98 }
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::iostream >::tell ( std::iostream *  s)
inlinestatic
99 {
100 return static_cast<int64_t>(s->tellp());
101 }

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