text: #ifndef _USBHD_COMMON_H
  #define _USBHD_COMMON_H
  
  #ifdef WIN32
  #define USBHD_INLINE
  typedef unsigned char u8;
  #else
  #define USBHD_INLINE inline
  void *malloc(int size);
  void free(void *ptr);
  #endif
  
  struct _cache_set;
  typedef struct _cache_set cache_set;
  
  //---------------------------------------------------------------------------
  static inline int getI32(unsigned char* buf)
  {
  	return (buf[0]  + (buf[1] <<8) + (buf[2] << 16) + (buf[3] << 24));
  }
  
  //---------------------------------------------------------------------------
  static inline int getI32_2(unsigned char* buf1, unsigned char* buf2)
  {
  	return (buf1[0]  + (buf1[1] <<8) + (buf2[0] << 16) + (buf2[1] << 24));
  }
  
  //---------------------------------------------------------------------------
  static inline int getI16(unsigned char* buf)
  {
  	return (buf[0] + (buf[1] <<8) );
  }
  
  #endif // _USBHD_COMMON_H
  