RPNXCortado
C++23 JVM class-file, bytecode, validation, and JAR toolkit
Loading...
Searching...
No Matches
jar.hpp File Reference

JAR-compatible ZIP serialization and deserialization APIs. More...

#include <cstddef>
#include <iterator>
#include <rpnx/cortado/class_file.hpp>
#include <span>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  rpnx::cortado
 JVM class-file, bytecode, validation, generation, and JAR APIs.
 

Functions

std::vector< std::byte > rpnx::cortado::serialize_jar (jar_file const &value)
 Serializes an archive as a non-Zip64 JAR-compatible ZIP file.
 
jar_file rpnx::cortado::deserialize_jar (std::span< std::byte const > bytes, jar_read_options const &options={})
 Deserializes exactly one JAR archive and validates entry sizes and CRC-32 values.
 
template<typename OutputIt>
auto rpnx::cortado::serialize_iter (jar_file const &value, OutputIt output) -> OutputIt
 Serial4-style output-iterator interface for JAR bytes.
 
template<typename OutputIt>
auto rpnx::cortado::serialize_iter (jar_file const &value, OutputIt output, OutputIt end) -> OutputIt
 Serial4-style bounded output-iterator interface for JAR bytes.
 
template<std::forward_iterator InputIt, std::sentinel_for< InputIt > Sentinel>
auto rpnx::cortado::deserialize_iter (jar_file &value, InputIt input, Sentinel end) -> InputIt
 Serial4-style bounded forward-iterator interface for JAR bytes.
 

Detailed Description

JAR-compatible ZIP serialization and deserialization APIs.

Definition in file jar.hpp.