grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fpxdr.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/raster.h>
#include "raster3d_intern.h"
Include dependency graph for fpxdr.c:

Go to the source code of this file.

Functions

int Rast3d_is_xdr_null_num (const void *num, int isFloat)
 
int Rast3d_is_xdr_null_float (const float *f)
 
int Rast3d_is_xdr_null_double (const double *d)
 
void Rast3d_set_xdr_null_num (void *num, int isFloat)
 
void Rast3d_set_xdr_null_double (double *d)
 
void Rast3d_set_xdr_null_float (float *f)
 
int Rast3d_init_fp_xdr (RASTER3D_Map *map, int misuseBytes)
 
int Rast3d_init_copy_to_xdr (RASTER3D_Map *map, int sType)
 
static int xdr_put (const void *src)
 
int Rast3d_copy_to_xdr (const void *src, int nofNum)
 
int Rast3d_init_copy_from_xdr (RASTER3D_Map *map, int dType)
 
static int xdr_get (void *src)
 
int Rast3d_copy_from_xdr (int nofNum, void *dst)
 

Variables

static size_t xdr_off
 
static void * xdrTmp
 
static int dstType
 
static int srcType
 
static int type
 
static int externLength
 
static int eltLength
 
static int isFloat
 
static int useXdr
 
static double tmpValue
 
static double * tmp
 

Function Documentation

◆ Rast3d_copy_from_xdr()

◆ Rast3d_copy_to_xdr()

◆ Rast3d_init_copy_from_xdr()

int Rast3d_init_copy_from_xdr ( RASTER3D_Map map,
int  dType 
)

◆ Rast3d_init_copy_to_xdr()

int Rast3d_init_copy_to_xdr ( RASTER3D_Map map,
int  sType 
)

◆ Rast3d_init_fp_xdr()

int Rast3d_init_fp_xdr ( RASTER3D_Map map,
int  misuseBytes 
)

◆ Rast3d_is_xdr_null_double()

int Rast3d_is_xdr_null_double ( const double *  d)

Definition at line 31 of file fpxdr.c.

References d, and Rast3d_is_xdr_null_num().

Referenced by G_fpcompress_rearrangeEncodeDoubles().

◆ Rast3d_is_xdr_null_float()

int Rast3d_is_xdr_null_float ( const float *  f)

Definition at line 24 of file fpxdr.c.

References Rast3d_is_xdr_null_num().

Referenced by G_fpcompress_rearrangeEncodeFloats().

◆ Rast3d_is_xdr_null_num()

int Rast3d_is_xdr_null_num ( const void *  num,
int  isFloat 
)

Definition at line 13 of file fpxdr.c.

References isFloat.

Referenced by Rast3d_copy_from_xdr(), Rast3d_is_xdr_null_double(), and Rast3d_is_xdr_null_float().

◆ Rast3d_set_xdr_null_double()

void Rast3d_set_xdr_null_double ( double *  d)

Definition at line 49 of file fpxdr.c.

References d, and Rast3d_set_xdr_null_num().

Referenced by G_fpcompress_rearrangeDecodeDoubles().

◆ Rast3d_set_xdr_null_float()

void Rast3d_set_xdr_null_float ( float *  f)

Definition at line 56 of file fpxdr.c.

References Rast3d_set_xdr_null_num().

Referenced by G_fpcompress_rearrangeDecodeFloats().

◆ Rast3d_set_xdr_null_num()

void Rast3d_set_xdr_null_num ( void *  num,
int  isFloat 
)

Definition at line 38 of file fpxdr.c.

References isFloat.

Referenced by Rast3d_copy_to_xdr(), Rast3d_set_xdr_null_double(), and Rast3d_set_xdr_null_float().

◆ xdr_get()

static int xdr_get ( void *  src)
static

◆ xdr_put()

static int xdr_put ( const void *  src)
static

Variable Documentation

◆ dstType

int dstType
static

Definition at line 101 of file fpxdr.c.

Referenced by Rast3d_copy_from_xdr(), and Rast3d_init_copy_from_xdr().

◆ eltLength

◆ externLength

int externLength
static

◆ isFloat

◆ srcType

int srcType
static

Definition at line 101 of file fpxdr.c.

Referenced by Rast3d_copy_to_xdr(), and Rast3d_init_copy_to_xdr().

◆ tmp

double * tmp
static

Definition at line 102 of file fpxdr.c.

Referenced by AS_class_discont(), BM_destroy_sparse(), check_extended_direction(), D_get_text_box(), db_double_quote_string(), destroy_links(), dfread_header_old(), EMPQueueAdaptive< T, Key >::extract_all_min(), EMPQueueAdaptive< T, Key >::extract_min(), f_rand(), fpreclass_get_default_cell_value(), G__temp_element(), G_math_Ax_sband(), G_math_Ax_sparse(), G_math_d_A_T(), G_math_d_aAx_by(), G_math_d_Ax(), G_math_egvorder(), G_math_f_A_T(), G_math_f_aAx_by(), G_math_f_Ax(), G_math_matrix_to_sband_matrix(), G_math_sband_matrix_to_matrix(), G_matrix_eigen_sort(), G_switch_env(), GK_add_key(), gk_follow_frames(), gp_free_sitemem(), gs_distance_onsurf(), GS_get_aspect(), GS_get_selected_point_on_surface(), GS_is_masked(), gs_put_label(), GS_set_viewdir(), GS_zoom_setup(), gsd_arrow(), gsd_arrow_onsurf(), gsd_getimage(), gsd_getViewport(), gsd_put_legend(), gsd_wall(), GVL_isosurf_move_down(), GVL_isosurf_move_up(), GVL_slice_move_down(), GVL_slice_move_up(), ReplacementHeap< T, Compare >::heapify(), ReplacementHeapBlock< T, Compare >::heapify(), I_cluster_point_part(), line(), link__get_next(), link__set_next(), link_new(), main(), makeRun(), em_pqueue< T, Key >::maxlen(), em_pqueue< T, Key >::merge_streams(), EMPQueueAdaptive< T, Key >::min(), N_norm_array_2d(), N_norm_array_3d(), NetA_eigenvector_centrality(), PNG_Box(), Rast3d_cache_hash_new(), Rast3d_cache_new(), Rast3d_copy_from_xdr(), Rast3d_copy_to_xdr(), Rast3d_flush_index(), Rast3d_init_copy_from_xdr(), Rast3d_init_copy_to_xdr(), Rast3d_long_encode(), Rast3d_mask_reopen(), Rast3d_readIndex(), Rast__quant_organize_fp_lookup(), Rast_fpreclass_get_cell_value(), Rast_fpreclass_reverse_rule_order(), Rast_get_ith_c_cat(), Rast_get_ith_cat(), Rast_get_ith_f_cat(), Rast_quant_get_cell_value(), Rast_quant_reverse_rule_order(), recreate_command(), shift_slices(), solver_cg(), solver_pcg(), sort_surfs_max(), sqpOperatorCode(), swap(), BasicMinMaxHeap< T >::swap(), tgis_set_default_connection(), uf_find(), V1_close_nat(), Vect__delete(), Vect_get_point_in_poly(), and Vect_line_segment().

◆ tmpValue

double tmpValue
static

Definition at line 102 of file fpxdr.c.

Referenced by Rast3d_init_copy_from_xdr(), and Rast3d_init_copy_to_xdr().

◆ type

int type
static

Definition at line 101 of file fpxdr.c.

Referenced by add_line(), break_lines(), cache_feature(), check_an_opt(), check_sftype(), close_volfile(), copy_lines_1(), copy_lines_2(), create_ogr_layer(), D_plot_icon(), dangles(), db_column_Ctype(), db_column_sqltype(), db_select_CatValArray(), db_select_int(), db_set_column_host_type(), dig_add_line(), dig_alloc_topo(), dig_angle_next_line(), dig_cidx_add_cat(), dig_cidx_add_cat_sorted(), dig_cidx_del_cat(), dig_find_line_box(), dig_node_add_line(), dig_node_angle_check(), dig_restore_line(), dig_type_to_store(), draw_line_nodes(), find_datah(), free_colorinfo(), G__json(), G__script(), G__usage_html(), G__usage_rest(), G__usage_xml(), G__wps_print_process_description(), G_color_rules_description_type(), G_list_color_rules_description_type(), G_option_rule(), get_buff_value(), get_map_row(), get_sftype(), grass::get_username(), gs_malloc_att_buff(), gs_set_att_type(), gsds_alloc_typbuff(), Gv_load_vect(), I_find_signature_file(), I_sc_init_cats(), I_scd_init_scatt_data(), IL_output_2d(), is_null_g3d_value(), iso_get_cube_value(), make_rule(), N_alloc_array_2d(), N_alloc_array_3d(), N_alloc_les(), N_alloc_les_A(), N_alloc_les_Ax(), N_alloc_les_Ax_b(), N_alloc_les_param(), N_alloc_nquad_les(), N_alloc_nquad_les_A(), N_alloc_nquad_les_Ax(), N_alloc_nquad_les_Ax_b(), N_math_array_2d(), N_math_array_3d(), N_norm_array_2d(), N_norm_array_3d(), N_read_rast3d_to_array_3d(), N_read_rast_to_array_2d(), N_write_array_2d_to_rast(), N_write_array_3d_to_rast3d(), NetA_get_node_costs(), NetA_varray_to_nodes(), new_part(), Nviz_new_map_obj(), Nviz_set_attr(), Nviz_set_fence_color(), Nviz_set_focus_map(), Nviz_unset_attr(), open_g3d_file(), P_Aux_to_Vector(), P_estimate_splinestep(), P_Read_Vector_Region_Map(), P_set_regions(), parse_fontcap_entry(), print_error(), print_sentence(), PS_begin_raster(), Rast3d_alloc_tiles_type(), Rast3d_compute_optimal_tile_dimension(), Rast3d_copy_from_xdr(), Rast3d_copy_to_xdr(), Rast3d_fill_header(), Rast3d_get_aligned_volume(), Rast3d_get_block(), Rast3d_get_block_nocache(), Rast3d_get_region_value(), Rast3d_get_standard3d_params(), Rast3d_get_value(), Rast3d_get_value_region(), Rast3d_get_volume(), Rast3d_get_volume_a(), Rast3d_get_window_value(), Rast3d_init_copy_from_xdr(), Rast3d_init_copy_to_xdr(), Rast3d_is_null_value_num(), Rast3d_mask_num(), Rast3d_mask_tile(), Rast3d_nearest_neighbor(), Rast3d_open_cell_old(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), Rast3d_put_value(), Rast3d_range_update_from_tile(), Rast3d_read_cats(), Rast3d_read_header(), Rast3d_read_tile(), Rast3d_readWriteHeader(), Rast3d_set_file_type(), Rast3d_set_null_tile_type(), Rast3d_set_null_value(), Rast3d_tile2xdrTile(), Rast3d_write_header(), Rast3d_write_tile(), Rast3d_xdrTile2tile(), Rast_get_gdal_link(), Rast_get_row_colors(), Rast_is_reclass(), Rast_short_history(), read_g3d_slice(), read_g3d_value(), read_g3d_vol(), read_line_nat(), reclass_type(), remove_bridges(), robj_alloc(), RTreeInitNode(), RTreeRemoveBranches(), select_by_query(), slice_get_value(), sqpAssignment(), sqpColumnDef(), sqpNewValueNode(), sqpValue(), ttb_convert_dgl_shortest_path_result(), V1__write_line_nat(), V1_read_line_geos(), V1_read_line_ogr(), V1_read_line_pg(), V1_rewrite_line_nat(), V1_rewrite_line_ogr(), V1_rewrite_line_pg(), V1_write_line_nat(), V1_write_line_ogr(), V1_write_line_pg(), V2__add_line_to_topo_nat(), V2__add_line_to_topo_sfa(), V2__delete_line_from_topo_nat(), V2_delete_line_nat(), V2_delete_line_pg(), V2_delete_line_sfa(), V2_read_line_sfa(), V2_restore_line_nat(), V2_rewrite_line_nat(), V2_rewrite_line_pg(), V2_rewrite_line_sfa(), V2_write_line_nat(), V2_write_line_pg(), V2_write_line_sfa(), Vect__read_line_geos(), Vect_break_lines(), Vect_break_lines_list(), Vect_break_polygons(), Vect_break_polygons_file(), Vect_break_polygons_mem(), Vect_build_nat(), Vect_check_line_breaks(), Vect_check_line_breaks_list(), Vect_cidx_dump(), Vect_cidx_find_all(), Vect_cidx_find_next(), Vect_cidx_get_cat_by_index(), Vect_cidx_get_type_count(), Vect_cidx_get_type_count_by_index(), Vect_clean_small_angles_at_nodes(), Vect_copy_map_lines_field(), Vect_copy_table(), Vect_copy_table_by_cat_list(), Vect_copy_table_by_cats(), Vect_copy_tables(), Vect_default_field_info(), Vect_find_line(), Vect_find_line_list(), Vect_get_line_box(), Vect_get_line_nodes(), Vect_get_map_box1(), Vect_get_num_primitives(), Vect_line_to_geos(), Vect_line_to_wkb(), Vect_line_to_wkt(), Vect_merge_lines(), Vect_net_build_graph(), Vect_net_ttb_build_graph(), Vect_net_ttb_shortest_path(), Vect_option_to_types(), Vect_read_ascii(), Vect_read_line_geos(), Vect_remove_dangles(), Vect_remove_duplicates(), Vect_rename(), Vect_rewrite_line(), Vect_select_dangles(), Vect_select_lines_by_box(), Vect_select_lines_by_polygon(), Vect_set_constraint_type(), Vect_set_varray_from_cat_list(), Vect_set_varray_from_cat_string(), Vect_set_varray_from_db(), Vect_sfa_check_line_type(), Vect_sfa_get_line_type(), Vect_sfa_is_line_closed(), Vect_sfa_is_line_simple(), Vect_sfa_line_astext(), Vect_sfa_line_dimension(), Vect_sfa_line_geometry_type(), Vect_snap_lines(), Vect_topo_check(), Vect_write_ascii(), Vect_write_line(), Vedit_add_vertex(), Vedit_bulk_labeling(), Vedit_chtype_lines(), Vedit_copy_lines(), Vedit_flip_lines(), Vedit_modify_cats(), Vedit_move_lines(), Vedit_move_vertex(), Vedit_remove_vertex(), Vedit_select_by_query(), Vedit_snap_lines(), Vedit_split_lines(), vfprint_error(), wps_print_comlpex_input_output(), wps_print_complex_input(), wps_print_complex_output(), wps_print_literal_input_output(), and write_feature().

◆ useXdr

◆ xdr_off

size_t xdr_off
static

◆ xdrTmp

void* xdrTmp
static