1#ifndef CASACORE_SHAPES_FILE_WRITER_H_
2#define CASACORE_SHAPES_FILE_WRITER_H_
6#include <casacore/casa/Arrays/IPosition.h>
24 for (ssize_t
value : position) {
32 const uint32_t uncompressed_size =
buffer_.size() *
sizeof(uint64_t);
34 std::span input(
reinterpret_cast<const std::byte*
>(
buffer_.data()),
36 const uint32_t compressed_size =
38 file_.write(
reinterpret_cast<const char*
>(&uncompressed_size),
40 file_.write(
reinterpret_cast<const char*
>(&compressed_size),
static constexpr size_t kMaxBufferSize
deflate::Compressor compressor_
std::vector< uint64_t > buffer_
void Write(const IPosition &position)
ShapesFileWriter(const std::string &filename)
std::vector< std::byte > compressed_buffer_
size_t Compress(std::span< const std::byte > input, std::span< std::byte > output)
Compresses the input into output.
size_t CompressBound(size_t input_size)
Worst-case upper bound on the number of bytes of compressed data that may be produced by compressing ...
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.