1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 /* test if map is in native endian mode
5  * test if map is in native endian mode
6  * returns nonzero if native, 0 if not native
7  */
8 int    MnativeEndian(const MAP *map)
9 {
10 	return map->main.byteOrder == ORD_OK;
11 }
12 
13 /* test if the Rput functions alter their cell buffers
14  * test if the Rput functions alter their cell buffers
15  * returns nonzero if they do not alter, 0 if they alter their buffers
16  */
17 int    RputDoNotChangeValues(const MAP *map)
18 {
19 	return MnativeEndian(map) && map->appCR == map->raster.cellRepr;
20 }
21