src/GamIO/ML5Tag.cc
// Input 		ML5T    : MAT version 5 tag (this)
// Output               NBytes	: Number of bytes 
Input          ML5T    : MAT version 5 tag (this)
Output               NBytes    : Number of bytes
Input ML5T : MAT version 5 tag ( this ) Output NBytes : Number of bytes
void MatLab5Tag::SetCompressed(int bigend)
  { 
  shortchars IC;			
  if(bigend)				
    {					
    IC.chars[0] = EightBytes[1];	
    IC.chars[1] = EightBytes[0];	
    }
  else					
    {					
    IC.chars[0] = EightBytes[2];	
    IC.chars[1] = EightBytes[3];	
    }					
  (IC.shortval)?Compressed=1:Compressed=0;
  }
void MatLab5Tag :: SetCompressed ( int bigend ) { shortchars IC ; if ( bigend ) { IC . chars [ 0 ] = EightBytes [ 1 ] ; IC . chars [ 1 ] = EightBytes [ 0 ] ; } else { IC . chars [ 0 ] = EightBytes [ 2 ] ; IC . chars [ 1 ] = EightBytes [ 3 ] ; } ( IC . shortval ) ? Compressed = 1 : Compressed = 0 ; }
Input          ML5T    : MAT version 5 tag (this)
Output               NBytes    : Number of bytes
Input ML5T : MAT version 5 tag ( this ) Output NBytes : Number of bytes
// Input 		ML5T    : MAT version 5 tag (this) //			bigend  : Data storage endian type // Output               void	: Determines if input tag has been //				  read in compressed format or not  //				  and sets flag Compressed accordingly // Note				: For a non-compressed tag, a 4 integer	 //				  [0, 14] for the data type is written. //				  Thus, part of these bytes will be  //				  zero.  For big endian,bytes 3&4 //				  are zero & for little endian bytes //				  1&2 are zero if tag is NOT compressed // We check for 0 in two of the bytes // If data in was big endian, then the // 3rd & 4th bytes will have the data // type leaving bytes 1&2 empty (0) // the tag isn't compressed, if it // If data in was little endian, then // the 1st & 2nd bytes will have the // data type in them, leaving the 3rd & // 4th bytes empty (0) if uncompressed