libsdfio 1.0.0
Reader and writer for ISO 25178-71 SDF surface data files in C
Loading...
Searching...
No Matches
sizes.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Thomas Ascher <thomas.ascher@gmx.at>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
11
12#ifndef SDFIO_SIZES_H
13#define SDFIO_SIZES_H
14
15#include <sdfio/header.h>
16#include <sdfio/sdfio_export.h>
17#include <sdfio/types.h>
18
19#include <stddef.h>
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
38 size_t *bytes);
39
50 size_t *bytes);
51
65 sdfio_data_type type, size_t *bytes);
66
80 sdfio_data_type type,
81 size_t *bytes);
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* SDFIO_SIZES_H */
Header of a file: size, scales, data type, dates and manufacturer.
struct sdfio_header sdfio_header
Header of a file, with the field names of the standard.
Definition header.h:42
sdfio_status sdfio_data_size(const sdfio_header *header, size_t *bytes)
Returns the size in bytes of a buffer for the whole data area: header->rows times header->columns cod...
sdfio_status sdfio_heights_size(const sdfio_header *header, sdfio_data_type type, size_t *bytes)
Returns the size in bytes of a buffer for the whole matrix of heights in a type, for sdfio_read_heigh...
sdfio_status sdfio_heights_row_size(const sdfio_header *header, sdfio_data_type type, size_t *bytes)
Returns the size in bytes of a buffer for one row of heights in a type, for sdfio_decode_heights() an...
sdfio_status sdfio_data_row_size(const sdfio_header *header, size_t *bytes)
Returns the size in bytes of a buffer for one row of the data area, to read or write the data row by ...
Status codes, enumerations, constants, and the structures for allocator, stream and time zone.
sdfio_status
Result of a function call.
Definition types.h:31
sdfio_data_type
Type of the coded values of the data area of a file, and of the elements of a buffer of heights.
Definition types.h:112