From def5c50960eea4c112647f88361a3ae7155901a8 Mon Sep 17 00:00:00 2001 From: egor-tensin Date: Tue, 4 Jul 2023 00:48:00 +0000 Subject: =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20egor-tensin/wina?= =?UTF-8?q?pi-common@0c196cbe8b4927c78c02b2c7312fc69a507db845=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classwinapi_1_1Buffer.html | 414 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 414 insertions(+) create mode 100644 classwinapi_1_1Buffer.html (limited to 'classwinapi_1_1Buffer.html') diff --git a/classwinapi_1_1Buffer.html b/classwinapi_1_1Buffer.html new file mode 100644 index 0000000..8c03e9c --- /dev/null +++ b/classwinapi_1_1Buffer.html @@ -0,0 +1,414 @@ + + + + + + + +winapi_common: winapi::Buffer Class Reference + + + + + + + + + +
+
+ + + + + + +
+
winapi_common +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
winapi::Buffer Class Reference
+
+
+ +

Binary data container. + More...

+
+Inheritance diagram for winapi::Buffer:
+
+
+ +
+ + + + +

+Public Types

+typedef std::vector< unsigned char > Parent
 
+ + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Buffer (std::initializer_list< unsigned char > lst)
 
 Buffer (Parent &&src)
 
template<typename CharT >
 Buffer (const std::basic_string< CharT > &src)
 
 Buffer (const void *src, std::size_t nb)
 
template<typename CharT >
void set (const std::basic_string< CharT > &src)
 
void set (const void *src, std::size_t nb)
 
std::string as_utf8 () const
 
std::wstring as_utf16 () const
 
void add (const Buffer &src)
 
+

Detailed Description

+

Binary data container.

+

This class wraps a blob of binary data.

+ +

Definition at line 24 of file buffer.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Buffer() [1/4]

+ +
+
+ + + + + +
+ + + + + + + + +
winapi::Buffer::Buffer (std::initializer_list< unsigned char > lst)
+
+inline
+
+

Construct a buffer from an explicit list of byte values.

+ +

Definition at line 31 of file buffer.hpp.

+ +
+
+ +

◆ Buffer() [2/4]

+ +
+
+ + + + + +
+ + + + + + + + +
winapi::Buffer::Buffer (Parent && src)
+
+inlineexplicit
+
+

Construct a buffer from an instance of std::vector<unsigned char>.

+ +

Definition at line 34 of file buffer.hpp.

+ +
+
+ +

◆ Buffer() [3/4]

+ +
+
+
+template<typename CharT >
+ + + + + +
+ + + + + + + + +
winapi::Buffer::Buffer (const std::basic_string< CharT > & src)
+
+inlineexplicit
+
+

Construct a buffer from an instance of std::basic_string.

+ +

Definition at line 38 of file buffer.hpp.

+ +
+
+ +

◆ Buffer() [4/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
winapi::Buffer::Buffer (const void * src,
std::size_t nb 
)
+
+inline
+
+

Construct a buffer from a memory region.

+ +

Definition at line 43 of file buffer.hpp.

+ +
+
+

Member Function Documentation

+ +

◆ set() [1/2]

+ +
+
+
+template<typename CharT >
+ + + + + +
+ + + + + + + + +
void winapi::Buffer::set (const std::basic_string< CharT > & src)
+
+inline
+
+

Replace the buffer's contents with the data from std::basic_string.

+ +

Definition at line 47 of file buffer.hpp.

+ +
+
+ +

◆ set() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void winapi::Buffer::set (const void * src,
std::size_t nb 
)
+
+inline
+
+

Replace the buffer's contents with the data from a memory region.

+ +

Definition at line 52 of file buffer.hpp.

+ +
+
+ +

◆ as_utf8()

+ +
+
+ + + + + +
+ + + + + + + +
std::string winapi::Buffer::as_utf8 () const
+
+inline
+
+

Interpret the buffer's contents as a std::string.

+ +

Definition at line 58 of file buffer.hpp.

+ +
+
+ +

◆ as_utf16()

+ +
+
+ + + + + +
+ + + + + + + +
std::wstring winapi::Buffer::as_utf16 () const
+
+inline
+
+

Interpret the buffer's contents as a std::wstring.

+ +

Definition at line 66 of file buffer.hpp.

+ +
+
+ +

◆ add()

+ +
+
+ + + + + +
+ + + + + + + + +
void winapi::Buffer::add (const Buffersrc)
+
+inline
+
+

Append another buffer to the end of this one.

+ +

Definition at line 79 of file buffer.hpp.

+ +
+
+
The documentation for this class was generated from the following file: +
+ + + + -- cgit v1.2.3