53 write_header(header_fields);
57 return read_header(header);
void read(void *ptr, size_t size)
read size bytes from the file into ptr
ChunkedFile reads and writes files which contain interleaved chunks of compressed and uncompressed da...
std::map< std::string, std::string > M_string
void writeEncryptedHeader(boost::function< void(ros::M_string const &)>, ros::M_string const &, ChunkedFile &)
Write encrypted header to bag file.
bool readEncryptedHeader(boost::function< bool(ros::Header &)>, ros::Header &, Buffer &, ChunkedFile &)
Read encrypted header from bag file.
void decryptChunk(ChunkHeader const &, Buffer &, ChunkedFile &) const
Decrypt chunk.
uint32_t encryptChunk(const uint32_t, const uint64_t, ChunkedFile &)
Encrypt chunk.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
void setSize(uint32_t size)