18#ifndef itkWasmIOCommon_h
19#define itkWasmIOCommon_h
22#include "WebAssemblyInterfaceExport.h"
46WebAssemblyInterface_EXPORT
void
47openFileForReading(std::ifstream & inputStream,
const std::string & filename,
bool ascii =
false);
64WebAssemblyInterface_EXPORT
void
66 const std::string & filename,
71WebAssemblyInterface_EXPORT
bool
74WebAssemblyInterface_EXPORT
bool
77WebAssemblyInterface_EXPORT
void
80WebAssemblyInterface_EXPORT
void
82 const char * dataName,
87WebAssemblyInterface_EXPORT
size_t
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
WebAssemblyInterface_EXPORT void writeCBORBuffer(cbor_item_t *index, const char *dataName, const void *buffer, SizeValueType numberOfBytesToWrite, IOComponentEnum ioComponent)
WebAssemblyInterface_EXPORT vcl_size_t ITKComponentSize(const CommonEnums::IOComponent)
CommonEnums::IOComponent IOComponentEnum
WebAssemblyInterface_EXPORT void readCBORBuffer(const cbor_item_t *index, const char *dataName, void *buffer, SizeValueType numberOfBytesToBeRead)
WebAssemblyInterface_EXPORT void openFileForReading(std::ifstream &inputStream, const std::string &filename, bool ascii=false)
Opens a file for reading and random access.
unsigned long SizeValueType
WebAssemblyInterface_EXPORT bool readBufferAsBinary(std::istream &os, void *buffer, SizeValueType numberOfBytesToBeRead)
WebAssemblyInterface_EXPORT void openFileForWriting(std::ofstream &outputStream, const std::string &filename, bool truncate=true, bool ascii=false)
Opens a file for writing and random access.
WebAssemblyInterface_EXPORT bool fileNameIsCBOR(const char *fileName)