Classes | Macros | Typedefs | Enumerations | Functions | Variables
rply.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include "rply.h"
#include <stdint.h>
Include dependency graph for rply.c:

Go to the source code of this file.

Classes

struct  t_ply_
 
struct  t_ply_argument_
 
struct  t_ply_element_
 
struct  t_ply_idriver_
 
struct  t_ply_odriver_
 
struct  t_ply_property_
 

Macros

#define BFIRST(p)   (p->buffer + p->buffer_first)
 
#define BLINE(p)   (p->buffer + p->buffer_token)
 
#define BSIZE(p)   (p->buffer_last - p->buffer_first)
 
#define BSKIP(p, s)   (p->buffer_first += s)
 
#define BUFFERSIZE   (8*1024)
 
#define BWORD(p)   (p->buffer + p->buffer_token)
 
#define LINESIZE   1024
 
#define PLY_INT16_MAX   INT16_MAX
 
#define PLY_INT16_MIN   INT16_MIN
 
#define PLY_INT32_MAX   INT32_MAX
 
#define PLY_INT32_MIN   INT32_MIN
 
#define PLY_INT8_MAX   INT8_MAX
 
#define PLY_INT8_MIN   INT8_MIN
 
#define PLY_UINT16_MAX   UINT16_MAX
 
#define PLY_UINT32_MAX   UINT32_MAX
 
#define PLY_UINT8_MAX   UINT8_MAX
 
#define WORDSIZE   256
 

Typedefs

typedef enum e_ply_io_mode_ e_ply_io_mode
 
typedef int(* p_ply_ichunk) (p_ply ply, void *anydata, size_t size)
 
typedef t_ply_idriverp_ply_idriver
 
typedef int(* p_ply_ihandler) (p_ply ply, double *value)
 
typedef int(* p_ply_ochunk) (p_ply ply, void *anydata, size_t size)
 
typedef t_ply_odriverp_ply_odriver
 
typedef int(* p_ply_ohandler) (p_ply ply, double value)
 
typedef struct t_ply_ t_ply
 
typedef struct t_ply_argument_ t_ply_argument
 
typedef struct t_ply_element_ t_ply_element
 
typedef struct t_ply_idriver_ t_ply_idriver
 
typedef int16_t t_ply_int16
 
typedef int32_t t_ply_int32
 
typedef int8_t t_ply_int8
 
typedef struct t_ply_odriver_ t_ply_odriver
 
typedef struct t_ply_property_ t_ply_property
 
typedef uint16_t t_ply_uint16
 
typedef uint32_t t_ply_uint32
 
typedef uint8_t t_ply_uint8
 

Enumerations

enum  e_ply_io_mode_ { PLY_READ, PLY_WRITE }
 

Functions

static int BREFILL (p_ply ply)
 
static int iascii_float32 (p_ply ply, double *value)
 
static int iascii_float64 (p_ply ply, double *value)
 
static int iascii_int16 (p_ply ply, double *value)
 
static int iascii_int32 (p_ply ply, double *value)
 
static int iascii_int8 (p_ply ply, double *value)
 
static int iascii_uint16 (p_ply ply, double *value)
 
static int iascii_uint32 (p_ply ply, double *value)
 
static int iascii_uint8 (p_ply ply, double *value)
 
static int ibinary_float32 (p_ply ply, double *value)
 
static int ibinary_float64 (p_ply ply, double *value)
 
static int ibinary_int16 (p_ply ply, double *value)
 
static int ibinary_int32 (p_ply ply, double *value)
 
static int ibinary_int8 (p_ply ply, double *value)
 
static int ibinary_uint16 (p_ply ply, double *value)
 
static int ibinary_uint32 (p_ply ply, double *value)
 
static int ibinary_uint8 (p_ply ply, double *value)
 
static int oascii_float32 (p_ply ply, double value)
 
static int oascii_float64 (p_ply ply, double value)
 
static int oascii_int16 (p_ply ply, double value)
 
static int oascii_int32 (p_ply ply, double value)
 
static int oascii_int8 (p_ply ply, double value)
 
static int oascii_uint16 (p_ply ply, double value)
 
static int oascii_uint32 (p_ply ply, double value)
 
static int oascii_uint8 (p_ply ply, double value)
 
static int obinary_float32 (p_ply ply, double value)
 
static int obinary_float64 (p_ply ply, double value)
 
static int obinary_int16 (p_ply ply, double value)
 
static int obinary_int32 (p_ply ply, double value)
 
static int obinary_int8 (p_ply ply, double value)
 
static int obinary_uint16 (p_ply ply, double value)
 
static int obinary_uint32 (p_ply ply, double value)
 
static int obinary_uint8 (p_ply ply, double value)
 
int ply_add_comment (p_ply ply, const char *comment)
 
int ply_add_element (p_ply ply, const char *name, long ninstances)
 
int ply_add_list_property (p_ply ply, const char *name, e_ply_type length_type, e_ply_type value_type)
 
int ply_add_obj_info (p_ply ply, const char *obj_info)
 
int ply_add_property (p_ply ply, const char *name, e_ply_type type, e_ply_type length_type, e_ply_type value_type)
 
int ply_add_scalar_property (p_ply ply, const char *name, e_ply_type type)
 
static p_ply ply_alloc (void)
 
static e_ply_storage_mode ply_arch_endian (void)
 
static int ply_check_line (p_ply ply)
 
static int ply_check_word (p_ply ply)
 
int ply_close (p_ply ply)
 
p_ply ply_create (const char *name, e_ply_storage_mode storage_mode, p_ply_error_cb error_cb, long idata, void *pdata)
 
static void ply_element_init (p_ply_element element)
 
static void ply_error_cb (p_ply ply, const char *message)
 
static void ply_ferror (p_ply ply, const char *fmt,...)
 
static p_ply_element ply_find_element (p_ply ply, const char *name)
 
static p_ply_property ply_find_property (p_ply_element element, const char *name)
 
static int ply_find_string (const char *item, const char *const list[])
 
static void ply_finish_word (p_ply ply, size_t size)
 
int ply_get_argument_element (p_ply_argument argument, p_ply_element *element, long *instance_index)
 
int ply_get_argument_property (p_ply_argument argument, p_ply_property *property, long *length, long *value_index)
 
int ply_get_argument_user_data (p_ply_argument argument, void **pdata, long *idata)
 
double ply_get_argument_value (p_ply_argument argument)
 
int ply_get_element_info (p_ply_element element, const char **name, long *ninstances)
 
const char * ply_get_next_comment (p_ply ply, const char *last)
 
p_ply_element ply_get_next_element (p_ply ply, p_ply_element last)
 
const char * ply_get_next_obj_info (p_ply ply, const char *last)
 
p_ply_property ply_get_next_property (p_ply_element element, p_ply_property last)
 
int ply_get_ply_user_data (p_ply ply, void **pdata, long *idata)
 
int ply_get_property_info (p_ply_property property, const char **name, e_ply_type *type, e_ply_type *length_type, e_ply_type *value_type)
 
static void * ply_grow_array (p_ply ply, void **pointer, long *nmemb, long size)
 
static p_ply_element ply_grow_element (p_ply ply)
 
static p_ply_property ply_grow_property (p_ply ply, p_ply_element element)
 
static void ply_init (p_ply ply)
 
p_ply ply_open (const char *name, p_ply_error_cb error_cb, long idata, void *pdata)
 
static void ply_property_init (p_ply_property property)
 
int ply_read (p_ply ply)
 
static int ply_read_chunk (p_ply ply, void *anybuffer, size_t size)
 
static int ply_read_chunk_reverse (p_ply ply, void *anybuffer, size_t size)
 
static int ply_read_element (p_ply ply, p_ply_element element, p_ply_argument argument)
 
int ply_read_header (p_ply ply)
 
static int ply_read_header_comment (p_ply ply)
 
static int ply_read_header_element (p_ply ply)
 
static int ply_read_header_format (p_ply ply)
 
static int ply_read_header_magic (p_ply ply)
 
static int ply_read_header_obj_info (p_ply ply)
 
static int ply_read_header_property (p_ply ply)
 
static int ply_read_line (p_ply ply)
 
static int ply_read_list_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument)
 
static int ply_read_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument)
 
static int ply_read_scalar_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument)
 
static int ply_read_word (p_ply ply)
 
static void ply_reverse (void *anydata, size_t size)
 
long ply_set_read_cb (p_ply ply, const char *element_name, const char *property_name, p_ply_read_cb read_cb, void *pdata, long idata)
 
static int ply_type_check (void)
 
int ply_write (p_ply ply, double value)
 
static int ply_write_chunk (p_ply ply, void *anybuffer, size_t size)
 
static int ply_write_chunk_reverse (p_ply ply, void *anybuffer, size_t size)
 
int ply_write_header (p_ply ply)
 

Variables

static t_ply_idriver ply_idriver_ascii
 
static t_ply_idriver ply_idriver_binary
 
static t_ply_idriver ply_idriver_binary_reverse
 
static t_ply_odriver ply_odriver_ascii
 
static t_ply_odriver ply_odriver_binary
 
static t_ply_odriver ply_odriver_binary_reverse
 
static const char *const ply_storage_mode_list []
 
static const char *const ply_type_list []
 

Macro Definition Documentation

◆ BFIRST

#define BFIRST (   p)    (p->buffer + p->buffer_first)

Definition at line 298 of file rply.c.

◆ BLINE

#define BLINE (   p)    (p->buffer + p->buffer_token)

Definition at line 295 of file rply.c.

◆ BSIZE

#define BSIZE (   p)    (p->buffer_last - p->buffer_first)

Definition at line 301 of file rply.c.

◆ BSKIP

#define BSKIP (   p,
 
)    (p->buffer_first += s)

Definition at line 304 of file rply.c.

◆ BUFFERSIZE

#define BUFFERSIZE   (8*1024)

Definition at line 65 of file rply.c.

◆ BWORD

#define BWORD (   p)    (p->buffer + p->buffer_token)

Definition at line 294 of file rply.c.

◆ LINESIZE

#define LINESIZE   1024

Definition at line 64 of file rply.c.

◆ PLY_INT16_MAX

#define PLY_INT16_MAX   INT16_MAX

Definition at line 52 of file rply.c.

◆ PLY_INT16_MIN

#define PLY_INT16_MIN   INT16_MIN

Definition at line 51 of file rply.c.

◆ PLY_INT32_MAX

#define PLY_INT32_MAX   INT32_MAX

Definition at line 54 of file rply.c.

◆ PLY_INT32_MIN

#define PLY_INT32_MIN   INT32_MIN

Definition at line 53 of file rply.c.

◆ PLY_INT8_MAX

#define PLY_INT8_MAX   INT8_MAX

Definition at line 50 of file rply.c.

◆ PLY_INT8_MIN

#define PLY_INT8_MIN   INT8_MIN

Definition at line 49 of file rply.c.

◆ PLY_UINT16_MAX

#define PLY_UINT16_MAX   UINT16_MAX

Definition at line 56 of file rply.c.

◆ PLY_UINT32_MAX

#define PLY_UINT32_MAX   UINT32_MAX

Definition at line 57 of file rply.c.

◆ PLY_UINT8_MAX

#define PLY_UINT8_MAX   UINT8_MAX

Definition at line 55 of file rply.c.

◆ WORDSIZE

#define WORDSIZE   256

Definition at line 63 of file rply.c.

Typedef Documentation

◆ e_ply_io_mode

◆ p_ply_ichunk

typedef int(* p_ply_ichunk) (p_ply ply, void *anydata, size_t size)

Definition at line 151 of file rply.c.

◆ p_ply_idriver

Definition at line 157 of file rply.c.

◆ p_ply_ihandler

typedef int(* p_ply_ihandler) (p_ply ply, double *value)

Definition at line 150 of file rply.c.

◆ p_ply_ochunk

typedef int(* p_ply_ochunk) (p_ply ply, void *anydata, size_t size)

Definition at line 160 of file rply.c.

◆ p_ply_odriver

Definition at line 166 of file rply.c.

◆ p_ply_ohandler

typedef int(* p_ply_ohandler) (p_ply ply, double value)

Definition at line 159 of file rply.c.

◆ t_ply

typedef struct t_ply_ t_ply

◆ t_ply_argument

◆ t_ply_element

typedef struct t_ply_element_ t_ply_element

◆ t_ply_idriver

typedef struct t_ply_idriver_ t_ply_idriver

◆ t_ply_int16

typedef int16_t t_ply_int16

Definition at line 44 of file rply.c.

◆ t_ply_int32

typedef int32_t t_ply_int32

Definition at line 45 of file rply.c.

◆ t_ply_int8

typedef int8_t t_ply_int8

Definition at line 43 of file rply.c.

◆ t_ply_odriver

typedef struct t_ply_odriver_ t_ply_odriver

◆ t_ply_property

◆ t_ply_uint16

typedef uint16_t t_ply_uint16

Definition at line 47 of file rply.c.

◆ t_ply_uint32

typedef uint32_t t_ply_uint32

Definition at line 48 of file rply.c.

◆ t_ply_uint8

typedef uint8_t t_ply_uint8

Definition at line 46 of file rply.c.

Enumeration Type Documentation

◆ e_ply_io_mode_

Enumerator
PLY_READ 
PLY_WRITE 

Definition at line 67 of file rply.c.

Function Documentation

◆ BREFILL()

static int BREFILL ( p_ply  ply)
static

Definition at line 307 of file rply.c.

◆ iascii_float32()

static int iascii_float32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1430 of file rply.c.

◆ iascii_float64()

static int iascii_float64 ( p_ply  ply,
double *  value 
)
static

Definition at line 1438 of file rply.c.

◆ iascii_int16()

static int iascii_int16 ( p_ply  ply,
double *  value 
)
static

Definition at line 1398 of file rply.c.

◆ iascii_int32()

static int iascii_int32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1414 of file rply.c.

◆ iascii_int8()

static int iascii_int8 ( p_ply  ply,
double *  value 
)
static

Definition at line 1382 of file rply.c.

◆ iascii_uint16()

static int iascii_uint16 ( p_ply  ply,
double *  value 
)
static

Definition at line 1406 of file rply.c.

◆ iascii_uint32()

static int iascii_uint32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1422 of file rply.c.

◆ iascii_uint8()

static int iascii_uint8 ( p_ply  ply,
double *  value 
)
static

Definition at line 1390 of file rply.c.

◆ ibinary_float32()

static int ibinary_float32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1488 of file rply.c.

◆ ibinary_float64()

static int ibinary_float64 ( p_ply  ply,
double *  value 
)
static

Definition at line 1495 of file rply.c.

◆ ibinary_int16()

static int ibinary_int16 ( p_ply  ply,
double *  value 
)
static

Definition at line 1460 of file rply.c.

◆ ibinary_int32()

static int ibinary_int32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1474 of file rply.c.

◆ ibinary_int8()

static int ibinary_int8 ( p_ply  ply,
double *  value 
)
static

Definition at line 1446 of file rply.c.

◆ ibinary_uint16()

static int ibinary_uint16 ( p_ply  ply,
double *  value 
)
static

Definition at line 1467 of file rply.c.

◆ ibinary_uint32()

static int ibinary_uint32 ( p_ply  ply,
double *  value 
)
static

Definition at line 1481 of file rply.c.

◆ ibinary_uint8()

static int ibinary_uint8 ( p_ply  ply,
double *  value 
)
static

Definition at line 1453 of file rply.c.

◆ oascii_float32()

static int oascii_float32 ( p_ply  ply,
double  value 
)
static

Definition at line 1323 of file rply.c.

◆ oascii_float64()

static int oascii_float64 ( p_ply  ply,
double  value 
)
static

Definition at line 1328 of file rply.c.

◆ oascii_int16()

static int oascii_int16 ( p_ply  ply,
double  value 
)
static

Definition at line 1303 of file rply.c.

◆ oascii_int32()

static int oascii_int32 ( p_ply  ply,
double  value 
)
static

Definition at line 1313 of file rply.c.

◆ oascii_int8()

static int oascii_int8 ( p_ply  ply,
double  value 
)
static

Definition at line 1293 of file rply.c.

◆ oascii_uint16()

static int oascii_uint16 ( p_ply  ply,
double  value 
)
static

Definition at line 1308 of file rply.c.

◆ oascii_uint32()

static int oascii_uint32 ( p_ply  ply,
double  value 
)
static

Definition at line 1318 of file rply.c.

◆ oascii_uint8()

static int oascii_uint8 ( p_ply  ply,
double  value 
)
static

Definition at line 1298 of file rply.c.

◆ obinary_float32()

static int obinary_float32 ( p_ply  ply,
double  value 
)
static

Definition at line 1369 of file rply.c.

◆ obinary_float64()

static int obinary_float64 ( p_ply  ply,
double  value 
)
static

Definition at line 1375 of file rply.c.

◆ obinary_int16()

static int obinary_int16 ( p_ply  ply,
double  value 
)
static

Definition at line 1345 of file rply.c.

◆ obinary_int32()

static int obinary_int32 ( p_ply  ply,
double  value 
)
static

Definition at line 1357 of file rply.c.

◆ obinary_int8()

static int obinary_int8 ( p_ply  ply,
double  value 
)
static

Definition at line 1333 of file rply.c.

◆ obinary_uint16()

static int obinary_uint16 ( p_ply  ply,
double  value 
)
static

Definition at line 1351 of file rply.c.

◆ obinary_uint32()

static int obinary_uint32 ( p_ply  ply,
double  value 
)
static

Definition at line 1363 of file rply.c.

◆ obinary_uint8()

static int obinary_uint8 ( p_ply  ply,
double  value 
)
static

Definition at line 1339 of file rply.c.

◆ ply_add_comment()

int ply_add_comment ( p_ply  ply,
const char *  comment 
)

Definition at line 549 of file rply.c.

◆ ply_add_element()

int ply_add_element ( p_ply  ply,
const char *  name,
long  ninstances 
)

Definition at line 482 of file rply.c.

◆ ply_add_list_property()

int ply_add_list_property ( p_ply  ply,
const char *  name,
e_ply_type  length_type,
e_ply_type  value_type 
)

Definition at line 515 of file rply.c.

◆ ply_add_obj_info()

int ply_add_obj_info ( p_ply  ply,
const char *  obj_info 
)

Definition at line 563 of file rply.c.

◆ ply_add_property()

int ply_add_property ( p_ply  ply,
const char *  name,
e_ply_type  type,
e_ply_type  length_type,
e_ply_type  value_type 
)

Definition at line 541 of file rply.c.

◆ ply_add_scalar_property()

int ply_add_scalar_property ( p_ply  ply,
const char *  name,
e_ply_type  type 
)

Definition at line 497 of file rply.c.

◆ ply_alloc()

static p_ply ply_alloc ( void  )
static

Definition at line 1113 of file rply.c.

◆ ply_arch_endian()

static e_ply_storage_mode ply_arch_endian ( void  )
static

Definition at line 1263 of file rply.c.

◆ ply_check_line()

static int ply_check_line ( p_ply  ply)
static

Definition at line 972 of file rply.c.

◆ ply_check_word()

static int ply_check_word ( p_ply  ply)
static

Definition at line 911 of file rply.c.

◆ ply_close()

int ply_close ( p_ply  ply)

Definition at line 658 of file rply.c.

◆ ply_create()

p_ply ply_create ( const char *  name,
e_ply_storage_mode  storage_mode,
p_ply_error_cb  error_cb,
long  idata,
void *  pdata 
)

Definition at line 447 of file rply.c.

◆ ply_element_init()

static void ply_element_init ( p_ply_element  element)
static

Definition at line 1096 of file rply.c.

◆ ply_error_cb()

static void ply_error_cb ( p_ply  ply,
const char *  message 
)
static

Definition at line 1249 of file rply.c.

◆ ply_ferror()

static void ply_ferror ( p_ply  ply,
const char *  fmt,
  ... 
)
static

Definition at line 1254 of file rply.c.

◆ ply_find_element()

static p_ply_element ply_find_element ( p_ply  ply,
const char *  name 
)
static

Definition at line 884 of file rply.c.

◆ ply_find_property()

static p_ply_property ply_find_property ( p_ply_element  element,
const char *  name 
)
static

Definition at line 897 of file rply.c.

◆ ply_find_string()

static int ply_find_string ( const char *  item,
const char *const  list[] 
)
static

Definition at line 876 of file rply.c.

◆ ply_finish_word()

static void ply_finish_word ( p_ply  ply,
size_t  size 
)
static

Definition at line 965 of file rply.c.

◆ ply_get_argument_element()

int ply_get_argument_element ( p_ply_argument  argument,
p_ply_element element,
long *  instance_index 
)

Definition at line 743 of file rply.c.

◆ ply_get_argument_property()

int ply_get_argument_property ( p_ply_argument  argument,
p_ply_property property,
long *  length,
long *  value_index 
)

Definition at line 752 of file rply.c.

◆ ply_get_argument_user_data()

int ply_get_argument_user_data ( p_ply_argument  argument,
void **  pdata,
long *  idata 
)

Definition at line 762 of file rply.c.

◆ ply_get_argument_value()

double ply_get_argument_value ( p_ply_argument  argument)

Definition at line 771 of file rply.c.

◆ ply_get_element_info()

int ply_get_element_info ( p_ply_element  element,
const char **  name,
long *  ninstances 
)

Definition at line 696 of file rply.c.

◆ ply_get_next_comment()

const char* ply_get_next_comment ( p_ply  ply,
const char *  last 
)

Definition at line 724 of file rply.c.

◆ ply_get_next_element()

p_ply_element ply_get_next_element ( p_ply  ply,
p_ply_element  last 
)

Definition at line 687 of file rply.c.

◆ ply_get_next_obj_info()

const char* ply_get_next_obj_info ( p_ply  ply,
const char *  last 
)

Definition at line 732 of file rply.c.

◆ ply_get_next_property()

p_ply_property ply_get_next_property ( p_ply_element  element,
p_ply_property  last 
)

Definition at line 704 of file rply.c.

◆ ply_get_ply_user_data()

int ply_get_ply_user_data ( p_ply  ply,
void **  pdata,
long *  idata 
)

Definition at line 777 of file rply.c.

◆ ply_get_property_info()

int ply_get_property_info ( p_ply_property  property,
const char **  name,
e_ply_type type,
e_ply_type length_type,
e_ply_type value_type 
)

Definition at line 713 of file rply.c.

◆ ply_grow_array()

static void * ply_grow_array ( p_ply  ply,
void **  pointer,
long *  nmemb,
long  size 
)
static

Definition at line 1120 of file rply.c.

◆ ply_grow_element()

static p_ply_element ply_grow_element ( p_ply  ply)
static

Definition at line 1135 of file rply.c.

◆ ply_grow_property()

static p_ply_property ply_grow_property ( p_ply  ply,
p_ply_element  element 
)
static

Definition at line 1147 of file rply.c.

◆ ply_init()

static void ply_init ( p_ply  ply)
static

Definition at line 1078 of file rply.c.

◆ ply_open()

p_ply ply_open ( const char *  name,
p_ply_error_cb  error_cb,
long  idata,
void *  pdata 
)

Definition at line 355 of file rply.c.

◆ ply_property_init()

static void ply_property_init ( p_ply_property  property)
static

Definition at line 1103 of file rply.c.

◆ ply_read()

int ply_read ( p_ply  ply)

Definition at line 429 of file rply.c.

◆ ply_read_chunk()

static int ply_read_chunk ( p_ply  ply,
void *  anybuffer,
size_t  size 
)
static

Definition at line 1015 of file rply.c.

◆ ply_read_chunk_reverse()

static int ply_read_chunk_reverse ( p_ply  ply,
void *  anybuffer,
size_t  size 
)
static

Definition at line 1061 of file rply.c.

◆ ply_read_element()

static int ply_read_element ( p_ply  ply,
p_ply_element  element,
p_ply_argument  argument 
)
static

Definition at line 857 of file rply.c.

◆ ply_read_header()

int ply_read_header ( p_ply  ply)

Definition at line 384 of file rply.c.

◆ ply_read_header_comment()

static int ply_read_header_comment ( p_ply  ply)
static

Definition at line 1177 of file rply.c.

◆ ply_read_header_element()

static int ply_read_header_element ( p_ply  ply)
static

Definition at line 1223 of file rply.c.

◆ ply_read_header_format()

static int ply_read_header_format ( p_ply  ply)
static

Definition at line 1161 of file rply.c.

◆ ply_read_header_magic()

static int ply_read_header_magic ( p_ply  ply)
static

Definition at line 330 of file rply.c.

◆ ply_read_header_obj_info()

static int ply_read_header_obj_info ( p_ply  ply)
static

Definition at line 1186 of file rply.c.

◆ ply_read_header_property()

static int ply_read_header_property ( p_ply  ply)
static

Definition at line 1195 of file rply.c.

◆ ply_read_line()

static int ply_read_line ( p_ply  ply)
static

Definition at line 980 of file rply.c.

◆ ply_read_list_property()

static int ply_read_list_property ( p_ply  ply,
p_ply_element  element,
p_ply_property  property,
p_ply_argument  argument 
)
static

Definition at line 788 of file rply.c.

◆ ply_read_property()

static int ply_read_property ( p_ply  ply,
p_ply_element  element,
p_ply_property  property,
p_ply_argument  argument 
)
static

Definition at line 849 of file rply.c.

◆ ply_read_scalar_property()

static int ply_read_scalar_property ( p_ply  ply,
p_ply_element  element,
p_ply_property  property,
p_ply_argument  argument 
)
static

Definition at line 830 of file rply.c.

◆ ply_read_word()

static int ply_read_word ( p_ply  ply)
static

Definition at line 923 of file rply.c.

◆ ply_reverse()

static void ply_reverse ( void *  anydata,
size_t  size 
)
static

Definition at line 1067 of file rply.c.

◆ ply_set_read_cb()

long ply_set_read_cb ( p_ply  ply,
const char *  element_name,
const char *  property_name,
p_ply_read_cb  read_cb,
void *  pdata,
long  idata 
)

Definition at line 413 of file rply.c.

◆ ply_type_check()

static int ply_type_check ( void  )
static

Definition at line 1270 of file rply.c.

◆ ply_write()

int ply_write ( p_ply  ply,
double  value 
)

Definition at line 616 of file rply.c.

◆ ply_write_chunk()

static int ply_write_chunk ( p_ply  ply,
void *  anybuffer,
size_t  size 
)
static

Definition at line 1034 of file rply.c.

◆ ply_write_chunk_reverse()

static int ply_write_chunk_reverse ( p_ply  ply,
void *  anybuffer,
size_t  size 
)
static

Definition at line 1053 of file rply.c.

◆ ply_write_header()

int ply_write_header ( p_ply  ply)

Definition at line 577 of file rply.c.

Variable Documentation

◆ ply_idriver_ascii

static t_ply_idriver ply_idriver_ascii
static
Initial value:
= {
},
"ascii input"
}
static int iascii_float64(p_ply ply, double *value)
Definition: rply.c:1438
static int iascii_float32(p_ply ply, double *value)
Definition: rply.c:1430
static int iascii_uint8(p_ply ply, double *value)
Definition: rply.c:1390
static int iascii_int32(p_ply ply, double *value)
Definition: rply.c:1414
static int iascii_int8(p_ply ply, double *value)
Definition: rply.c:1382
static int iascii_uint16(p_ply ply, double *value)
Definition: rply.c:1406
static int iascii_uint32(p_ply ply, double *value)
Definition: rply.c:1422
static int iascii_int16(p_ply ply, double *value)
Definition: rply.c:1398
#define NULL
Definition: mydefs.hpp:141

Definition at line 219 of file rply.c.

◆ ply_idriver_binary

static t_ply_idriver ply_idriver_binary
static
Initial value:
= {
},
"binary input"
}
static int ibinary_int8(p_ply ply, double *value)
Definition: rply.c:1446
static int ibinary_int32(p_ply ply, double *value)
Definition: rply.c:1474
static int ibinary_uint16(p_ply ply, double *value)
Definition: rply.c:1467
static int ibinary_int16(p_ply ply, double *value)
Definition: rply.c:1460
static int ibinary_uint8(p_ply ply, double *value)
Definition: rply.c:1453
static int ibinary_uint32(p_ply ply, double *value)
Definition: rply.c:1481
static int ibinary_float64(p_ply ply, double *value)
Definition: rply.c:1495
static int ibinary_float32(p_ply ply, double *value)
Definition: rply.c:1488
static int ply_read_chunk(p_ply ply, void *anybuffer, size_t size)
Definition: rply.c:1015

Definition at line 220 of file rply.c.

◆ ply_idriver_binary_reverse

static t_ply_idriver ply_idriver_binary_reverse
static
Initial value:
= {
},
"reverse binary input"
}
static int ibinary_int8(p_ply ply, double *value)
Definition: rply.c:1446
static int ibinary_int32(p_ply ply, double *value)
Definition: rply.c:1474
static int ibinary_uint16(p_ply ply, double *value)
Definition: rply.c:1467
static int ibinary_int16(p_ply ply, double *value)
Definition: rply.c:1460
static int ibinary_uint8(p_ply ply, double *value)
Definition: rply.c:1453
static int ibinary_uint32(p_ply ply, double *value)
Definition: rply.c:1481
static int ibinary_float64(p_ply ply, double *value)
Definition: rply.c:1495
static int ibinary_float32(p_ply ply, double *value)
Definition: rply.c:1488
static int ply_read_chunk_reverse(p_ply ply, void *anybuffer, size_t size)
Definition: rply.c:1061

Definition at line 221 of file rply.c.

◆ ply_odriver_ascii

static t_ply_odriver ply_odriver_ascii
static
Initial value:
= {
},
"ascii output"
}
static int oascii_uint32(p_ply ply, double value)
Definition: rply.c:1318
static int oascii_int8(p_ply ply, double value)
Definition: rply.c:1293
static int oascii_uint8(p_ply ply, double value)
Definition: rply.c:1298
static int oascii_int16(p_ply ply, double value)
Definition: rply.c:1303
static int oascii_float32(p_ply ply, double value)
Definition: rply.c:1323
static int oascii_int32(p_ply ply, double value)
Definition: rply.c:1313
static int oascii_float64(p_ply ply, double value)
Definition: rply.c:1328
static int oascii_uint16(p_ply ply, double value)
Definition: rply.c:1308
#define NULL
Definition: mydefs.hpp:141

Definition at line 222 of file rply.c.

◆ ply_odriver_binary

static t_ply_odriver ply_odriver_binary
static
Initial value:
= {
},
"binary output"
}
static int obinary_uint8(p_ply ply, double value)
Definition: rply.c:1339
static int obinary_float64(p_ply ply, double value)
Definition: rply.c:1375
static int obinary_int16(p_ply ply, double value)
Definition: rply.c:1345
static int obinary_int32(p_ply ply, double value)
Definition: rply.c:1357
static int obinary_int8(p_ply ply, double value)
Definition: rply.c:1333
static int ply_write_chunk(p_ply ply, void *anybuffer, size_t size)
Definition: rply.c:1034
static int obinary_uint16(p_ply ply, double value)
Definition: rply.c:1351
static int obinary_uint32(p_ply ply, double value)
Definition: rply.c:1363
static int obinary_float32(p_ply ply, double value)
Definition: rply.c:1369

Definition at line 223 of file rply.c.

◆ ply_odriver_binary_reverse

static t_ply_odriver ply_odriver_binary_reverse
static
Initial value:
= {
},
"reverse binary output"
}
static int obinary_uint8(p_ply ply, double value)
Definition: rply.c:1339
static int obinary_float64(p_ply ply, double value)
Definition: rply.c:1375
static int ply_write_chunk_reverse(p_ply ply, void *anybuffer, size_t size)
Definition: rply.c:1053
static int obinary_int16(p_ply ply, double value)
Definition: rply.c:1345
static int obinary_int32(p_ply ply, double value)
Definition: rply.c:1357
static int obinary_int8(p_ply ply, double value)
Definition: rply.c:1333
static int obinary_uint16(p_ply ply, double value)
Definition: rply.c:1351
static int obinary_uint32(p_ply ply, double value)
Definition: rply.c:1363
static int obinary_float32(p_ply ply, double value)
Definition: rply.c:1369

Definition at line 224 of file rply.c.

◆ ply_storage_mode_list

const char* const ply_storage_mode_list[]
static
Initial value:
= {
"binary_big_endian", "binary_little_endian", "ascii", NULL
}
#define NULL
Definition: mydefs.hpp:141

Definition at line 72 of file rply.c.

◆ ply_type_list

const char* const ply_type_list[]
static
Initial value:
= {
"int8", "uint8", "int16", "uint16",
"int32", "uint32", "float32", "float64",
"char", "uchar", "short", "ushort",
"int", "uint", "float", "double",
"list", NULL
}
#define NULL
Definition: mydefs.hpp:141

Definition at line 76 of file rply.c.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:10