8#ifndef SCANBOTSDK_RANDOM_ACCESS_SOURCE_H
9#define SCANBOTSDK_RANDOM_ACCESS_SOURCE_H
11#include <ScanbotSDKDefs.h>
ScanbotSDK Error Code C API.
scanbotsdk_error_code_t
The error codes returned by most of the Scanbot SDK functions.
Definition ScanbotSDKErrorCode.h:25
size_t size
Size of the data stored by source.
Definition ScanbotSDKRandomAccessSource.h:43
void(* free)(void *source)
Frees the source instance.
Definition ScanbotSDKRandomAccessSource.h:54
const char * data
Pointer to the data stored by source.
Definition ScanbotSDKRandomAccessSource.h:38
void * source
Pointer to the source instance.
Definition ScanbotSDKRandomAccessSource.h:33
bool is_owning
True if the source instance owns the data. Here owns means that holding a pointer to the source is en...
Definition ScanbotSDKRandomAccessSource.h:49
SBSDK_API scanbotsdk_error_code_t scanbotsdk_random_access_source_create_from_external(scanbotsdk_external_random_access_source_t external_source, scanbotsdk_random_access_source_t **result)
Creates a new instance of the random access source from an external implementation of random access s...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_random_access_source_free(scanbotsdk_random_access_source_t *object)
Destroys the source instance. If null is passed does nothing.
struct scanbotsdk_random_access_source_t scanbotsdk_random_access_source_t
Represents an instance of the opaque random access source.
Definition ScanbotSDKRandomAccessSource.h:23
SBSDK_API scanbotsdk_error_code_t scanbotsdk_random_access_source_create_from_path(const char *path, scanbotsdk_random_access_source_t **result)
Creates a new instance of the random access source from the path to a file.
Provides interface for implementing custom random access source.
Definition ScanbotSDKRandomAccessSource.h:29