daffodil.util.data

Provides common data manipulation functions.

Members

Functions

dataLoad
DataRange dataLoad(File file)
DataRange dataLoad(string path)

Converts any sort of possible input/location into a forward ubyte range. Useful for providing simple overloading of load functions for a variety of inputs.

dataSave
OutRange dataSave(File file)
OutRange dataSave(string path)

Converts any sort of possible output into a output range. Useful for providing simple overloading of save functions for a variety of outputs.

maskedRasterLoad
auto maskedRasterLoad(R data, T[] mask, size_t bpp, ptrdiff_t _width, ptrdiff_t _height, const ColorSpace* _colorSpace, size_t padding = 1)

Documentation

paddingFor
auto paddingFor(size_t width, size_t bpp, size_t padding)

Calculate the padding needed when padding a bpp with a width to a multiple of bytes

Meta