mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
26 lines
774 B
C
26 lines
774 B
C
/***********************************************************************
|
|
* pc_api_internal.h
|
|
*
|
|
* Signatures we need to share within the library, but not for
|
|
* use outside it.
|
|
*
|
|
* Portions Copyright (c) 2012, OpenGeo
|
|
*
|
|
***********************************************************************/
|
|
|
|
#ifndef _PC_API_INTERNAL_H
|
|
#define _PC_API_INTERNAL_H
|
|
|
|
#include "pc_api.h"
|
|
|
|
|
|
/** Read interpretation type from buffer and cast to double */
|
|
double pc_double_from_ptr(const uint8_t *ptr, uint32_t interpretation);
|
|
/** Write value to buffer in the interpretation type */
|
|
int pc_double_to_ptr(uint8_t *ptr, uint32_t interpretation, double val);
|
|
|
|
/** Return number of bytes in a given interpretation */
|
|
size_t pc_interpretation_size(uint32_t interp);
|
|
|
|
|
|
#endif /* _PC_API_INTERNAL_H */ |