libnpy 2.0.0
Lightweight C++ library for reading and writing NPY and NPZ files
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
npy::file_entry Struct Reference

Struct representing a file in the NPZ archive. More...

#include <npy.h>

Collaboration diagram for npy::file_entry:
Collaboration graph
[legend]

Public Member Functions

bool check (const file_entry &other) const
 

Public Attributes

std::string filename
 The name of the file.
 
std::uint32_t crc32
 The CRC32 checksum of the uncompressed data.
 
std::uint64_t compressed_size
 The size of the compressed data.
 
std::uint64_t uncompressed_size
 The size of the uncompressed data.
 
std::uint16_t compression_method
 The method used to compress the data.
 
std::uint64_t offset
 The offset of the file in the archive.
 

Detailed Description

Struct representing a file in the NPZ archive.

Member Function Documentation

◆ check()

bool npy::file_entry::check ( const file_entry other) const

Check if this entry matches another entry

Parameters
otherthe other entry
Returns
if these entries match

Member Data Documentation

◆ compressed_size

std::uint64_t npy::file_entry::compressed_size

The size of the compressed data.

◆ compression_method

std::uint16_t npy::file_entry::compression_method

The method used to compress the data.

◆ crc32

std::uint32_t npy::file_entry::crc32

The CRC32 checksum of the uncompressed data.

◆ filename

std::string npy::file_entry::filename

The name of the file.

◆ offset

std::uint64_t npy::file_entry::offset

The offset of the file in the archive.

◆ uncompressed_size

std::uint64_t npy::file_entry::uncompressed_size

The size of the uncompressed data.


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