<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>    I know wkb raster format must consider 
endian, but does serialized format need? I puzzled about following 
code:</FONT></DIV>
<DIV><FONT size=2>    when rt_raster_serialize, we just memcpy 
nodata value to serialized ptr,such as: </FONT></DIV>
<DIV><FONT 
size=2>            case 
PT_16BSI:<BR>            
case 
PT_16BUI:<BR>            
{<BR>                
uint16_t v = 
band->nodataval;<BR>                
memcpy(ptr, &v, 2); 
ptr+=2;<BR>                
break;<BR>            
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>    but when rt_raster_deserialize, we must 
consider Endian when read nodata value, such as</FONT></DIV>
<DIV><FONT size=2>          case 
PT_16BSI:<BR>          
{<BR>               
band->nodataval = read_int16(&ptr, 
littleEndian);<BR>               
break;<BR>          }</FONT></DIV>
<DIV><FONT size=2>   Why?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Jiong</FONT></DIV>
<DIV><FONT size=2>   </FONT></DIV></BODY></HTML>