cereal::BinaryInputArchive(3) Library Functions Manual cereal::BinaryInputArchive(3)

# [NAME](#NAME)

cereal::BinaryInputArchive - An input archive designed to load data saved using **BinaryOutputArchive**.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/archives/binary.hpp&gt;

Inherits **cereal::InputArchive&lt; BinaryInputArchive, AllowEmptyClassElision &gt;**.

## [Public Member Functions](#Public_Member_Functions)

**BinaryInputArchive** (std::istream &stream)  
Construct, loading from the provided stream. void **loadBinary** (void \*const data, std::streamsize size)  
Reads size bytes of data from the input stream.

Public Member Functions inherited from **cereal::InputArchive&lt; BinaryInputArchive, AllowEmptyClassElision &gt;**  
**InputArchive** (**BinaryInputArchive** \*const derived)  
Construct the output archive. **InputArchive** & **operator=** (**InputArchive** const &)=delete  
**BinaryInputArchive** & **operator()** (Types &&... args)  
Serializes all passed in data. void **serializeDeferments** ()  
Serializes any data marked for deferment using defer. std::shared\_ptr&lt; void &gt; **getSharedPointer** (std::uint32\_t const id)  
Retrieves a shared pointer given a unique key for it. void **registerSharedPointer** (std::uint32\_t const id, std::shared\_ptr&lt; void &gt; ptr)  
Registers a shared pointer to its unique identifier. std::string **getPolymorphicName** (std::uint32\_t const id)  
Retrieves the string for a polymorphic type given a unique key for it. void **registerPolymorphicName** (std::uint32\_t const id, std::string const &name)  
Registers a polymorphic name string to its unique identifier.

**BinaryInputArchive** & **operator&** (T &&arg)  
Serializes passed in data.

**BinaryInputArchive** & **operator&gt;&gt;** (T &&arg)  
Serializes passed in data.

Public Member Functions inherited from **cereal::detail::InputArchiveBase**  
**InputArchiveBase** (InputArchiveBase &&) **CEREAL\_NOEXCEPT**  
InputArchiveBase & **operator=** (InputArchiveBase &&) **CEREAL\_NOEXCEPT**

## [Additional Inherited Members](#Additional_Inherited_Members)

using **is\_loading**  
Indicates this archive is intended for loading.

using **is\_saving**  
Indicates this archive is not intended for saving.

# [Detailed Description](#Detailed_Description)

An input archive designed to load data saved using **BinaryOutputArchive**.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

---

Document: cereal_BinaryInputArchive(3) from cereal 1.3.2-r6 (Chainguard OS)
Source: https://github.com/USCiLab/cereal
