Source/NFX/IOMiscUtils.cs
/// <summary>
/// Unpacks an ISO code from int which was packed with PackISO3CodeToInt
/// </summary>
Unpacks an ISO code from int which was packed with PackISO3CodeToInt
Unpacks an ISO code from int which was packed with PackISO3CodeToInt
public static unsafe string UnpackISO3CodeFromInt(int iso)
        {
          if (iso==0) return null;
          char* buf = stackalloc char[3];
          char* pc = buf;
          var c =(char)(iso & 0xff);
          if (c!=0) *pc++ = c;
          c = (char)((iso>>8) & 0xff);
          if (c!=0) *pc++ = c;
          c = (char)((iso>>16) & 0xff);
          if (c!=0) *pc++ = c;
          return new string(buf);
        }
public static unsafe string UnpackISO3CodeFromInt ( int iso ) { if ( iso == 0 ) return null ; char * buf = stackalloc char [ 3 ] ; char * pc = buf ; var c = ( char ) ( iso & 0xff ) ; if ( c != 0 ) * pc ++ = c ; c = ( char ) ( ( iso >> 8 ) & 0xff ) ; if ( c != 0 ) * pc ++ = c ; c = ( char ) ( ( iso >> 16 ) & 0xff ) ; if ( c != 0 ) * pc ++ = c ; return new string ( buf ) ; }
Unpacks an ISO code from int which was packed with PackISO3CodeToInt
Unpacks an ISO code from int which was packed with PackISO3CodeToInt
iso
int