PDF SDK Documentation
Comprehensive Guide for Developers: Features, Integration, and API Reference
Loading...
Searching...
No Matches
write_stream.h
1
// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3
#ifndef PDFSDK_CXX_PDF_WRITE_STREAM_H_INCLUDED_
4
#define PDFSDK_CXX_PDF_WRITE_STREAM_H_INCLUDED_
5
6
#include <
pdfsdk/core/objects.h
>
7
#include <
pdfsdk/core/streams.h
>
8
#include <pdfsdk/cxx/bytes.h>
9
10
#include "wrapper_base.h"
11
12
namespace
PDF {
13
17
class
WriteStream :
public
detail::RefCountedHandle<PDWriteStream> {
18
public
:
26
static
WriteStream
Create
(
const
PDWriteStreamProcs
& procs,
void
* streamData);
27
33
size_t
Write
(std::span<const Byte> buffer);
34
38
void
Close
();
39
40
PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(WriteStream, PDWriteStream)
41
};
42
43
}
// namespace PDF
44
45
#include "write_stream_impl.inl"
46
47
#endif
// PDFSDK_CXX_PDF_WRITE_STREAM_H_INCLUDED_
PDF::WriteStream::Write
size_t Write(std::span< const Byte > buffer)
Writes data to the stream.
PDF::WriteStream::Create
static WriteStream Create(const PDWriteStreamProcs &procs, void *streamData)
Creates a write stream backed by the given callback procedures.
PDF::WriteStream::Close
void Close()
Closes the write stream.
objects.h
Objects API.
streams.h
Streams API.
PDWriteStreamProcs
Definition
streams.h:25