GRASS 8 Programmer's Manual 8.6.0dev(2026)-0f6a7341fc
Loading...
Searching...
No Matches
zero_cell.c File Reference

Raster Library - Zero cell buffer functions. More...

#include <string.h>
#include <grass/gis.h>
#include <grass/raster.h>
Include dependency graph for zero_cell.c:

Go to the source code of this file.

Functions

void Rast_zero_buf (void *rast, RASTER_MAP_TYPE data_type)
 Zero a raster buffer.
 
void Rast_zero_input_buf (void *rast, RASTER_MAP_TYPE data_type)
 
void Rast_zero_output_buf (void *rast, RASTER_MAP_TYPE data_type)
 

Detailed Description

Raster Library - Zero cell buffer functions.

SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Original author CERL

Definition in file zero_cell.c.

Function Documentation

◆ Rast_zero_buf()

void Rast_zero_buf ( void rast,
RASTER_MAP_TYPE  data_type 
)

Zero a raster buffer.

This routines assigns each member of the raster buffer array rast to zero. It assumes that rast has been allocated using Rast_allocate_c_buf().

Parameters
rastdata buffer
data_typeraster type (CELL_TYPE, FCELL_TYPE, DCELL_TYPE)

Definition at line 26 of file zero_cell.c.

References Rast_cell_size(), and Rast_window_cols().

◆ Rast_zero_input_buf()

void Rast_zero_input_buf ( void rast,
RASTER_MAP_TYPE  data_type 
)

Definition at line 31 of file zero_cell.c.

References Rast_cell_size(), and Rast_input_window_cols().

◆ Rast_zero_output_buf()

void Rast_zero_output_buf ( void rast,
RASTER_MAP_TYPE  data_type 
)

Definition at line 36 of file zero_cell.c.

References Rast_cell_size(), and Rast_output_window_cols().